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

Unified Diff: lib/core/stopwatch.dart

Issue 10948009: Revert 12494. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 3 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 | « lib/core/set.dart ('k') | lib/core/string_buffer.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/core/stopwatch.dart
===================================================================
--- lib/core/stopwatch.dart (revision 12500)
+++ lib/core/stopwatch.dart (working copy)
@@ -5,7 +5,8 @@
/**
* A simple [Stopwatch] interface to measure elapsed time.
*/
-abstract class Stopwatch {
+interface Stopwatch default StopwatchImplementation {
+
/**
* Creates a [Stopwatch] in stopped state with a zero elapsed count.
*
@@ -14,7 +15,7 @@
*
* Stopwatch stopwatch = new Stopwatch()..start();
*/
- factory Stopwatch() => new StopwatchImplementation();
+ Stopwatch();
/**
* Starts the [Stopwatch]. The [elapsed] count is increasing monotonically.
« no previous file with comments | « lib/core/set.dart ('k') | lib/core/string_buffer.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698