Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Unified Diff: corelib/src/stopwatch.dart

Issue 10890030: Move core and coreimpl from corelib/ to lib/core and lib/coreimpl. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebase. Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « corelib/src/set.dart ('k') | corelib/src/string.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: corelib/src/stopwatch.dart
diff --git a/corelib/src/stopwatch.dart b/corelib/src/stopwatch.dart
deleted file mode 100644
index 2135c55d1fc53df8984a3b2975befd4fd0c129d0..0000000000000000000000000000000000000000
--- a/corelib/src/stopwatch.dart
+++ /dev/null
@@ -1,66 +0,0 @@
-// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-/**
- * A simple [Stopwatch] interface to measure elapsed time.
- */
-interface Stopwatch default StopwatchImplementation {
-
- /**
- * Creates a [Stopwatch] in stopped state with a zero elapsed count.
- */
- Stopwatch();
-
- /**
- * Creates a [Stopwatch] in started state with a zero elapsed count.
- */
- Stopwatch.start();
-
- /**
- * Starts the [Stopwatch]. The [elapsed] count is increasing monotonically.
- * If the [Stopwatch] has been stopped, then calling start again restarts it
- * without resetting the [elapsed] count.
- * If the [Stopwatch] is currently running, then calling start does nothing.
- */
- void start();
-
- /**
- * Stops the [Stopwatch]. The [elapsed] count stops increasing.
- * If the [Stopwatch] is currently not running, then calling stop does
- * nothing.
- */
- void stop();
-
- /**
- * Resets the [elapsed] count to zero. This method does not stop or start
- * the [Stopwatch].
- */
- void reset();
-
- /**
- * Returns the elapsed number of clock ticks since calling [start] while the
- * [Stopwatch] is running.
- * Returns the elapsed number of clock ticks between calling [start] and
- * calling [stop].
- * Returns 0 if the [Stopwatch] has never been started.
- * The elapsed number of clock ticks increases by [frequency] every second.
- */
- int elapsed();
-
- /**
- * Returns the [elapsed] counter converted to microseconds.
- */
- int elapsedInUs();
-
- /**
- * Returns the [elapsed] counter converted to milliseconds.
- */
- int elapsedInMs();
-
- /**
- * Returns the frequency of the elapsed counter in Hz.
- */
- int frequency();
-
-}
« no previous file with comments | « corelib/src/set.dart ('k') | corelib/src/string.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698