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

Unified Diff: lib/core/stopwatch.dart

Issue 10908066: - Removed named constructor Stopwatch.start() due to conflict with instance methods start(). (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/compiler/implementation/compiler.dart ('k') | lib/coreimpl/stopwatch_implementation.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 11786)
+++ lib/core/stopwatch.dart (working copy)
@@ -9,15 +9,15 @@
/**
* Creates a [Stopwatch] in stopped state with a zero elapsed count.
+ *
+ * The following example shows how to start a [Stopwatch]
+ * right after allocation.
+ *
+ * Stopwatch stopwatch = new Stopwatch()..start();
*/
Stopwatch();
/**
- * Creates a [Stopwatch] in started state with a zero elapsed count.
- */
- Stopwatch.start();
kasperl 2012/09/04 08:11:59 Personally, I like naming constructor like these s
-
- /**
* 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.
« no previous file with comments | « lib/compiler/implementation/compiler.dart ('k') | lib/coreimpl/stopwatch_implementation.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698