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

Issue 8537011: Rename StopWatch to Stopwatch. Add new Stopwatch.start() and Stopwatch.reset(). (Closed)

Created:
9 years, 1 month ago by floitsch
Modified:
9 years, 1 month ago
CC:
reviews_dartlang.org, srdjan, Ivan Posva
Visibility:
Public.

Description

Rename StopWatch to Stopwatch. Add new Stopwatch.start() and Stopwatch.reset(). BUG=dart:418 TEST= Committed: https://code.google.com/p/dart/source/detail?r=1505

Patch Set 1 #

Patch Set 2 : Make StopwatchTest diffable. #

Total comments: 1

Patch Set 3 : Rename StopWatchTest.dart back to StopwatchTest.dart. #

Patch Set 4 : Move break on new line. #

Total comments: 7

Patch Set 5 : '' #

Patch Set 6 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+138 lines, -101 lines) Patch
M corelib/src/implementation/stopwatch_implementation.dart View 1 2 3 4 5 2 chunks +20 lines, -5 lines 0 comments Download
M corelib/src/stopwatch.dart View 1 2 3 4 5 1 chunk +24 lines, -11 lines 0 comments Download
M frog/leg/compiler.dart View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M frog/leg/scanner/parser_bench.dart View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M frog/leg/scanner/scanner_bench.dart View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M frog/world.dart View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M tests/co19/co19-compiler.status View 1 2 3 4 2 chunks +11 lines, -1 line 0 comments Download
M tests/co19/co19-frog.status View 1 2 3 4 2 chunks +11 lines, -1 line 0 comments Download
M tests/co19/co19-runtime.status View 1 2 3 4 1 chunk +11 lines, -0 lines 0 comments Download
D tests/corelib/src/StopWatchTest.dart View 1 2 3 4 1 chunk +0 lines, -65 lines 0 comments Download
A + tests/corelib/src/StopwatchTest.dart View 1 2 3 4 2 chunks +56 lines, -13 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
floitsch
I modified corelib/StopwatchTest.dart (in addition to renaming it). If you want to look at the ...
9 years, 1 month ago (2011-11-11 13:57:48 UTC) #1
Mads Ager (google)
lgtm
9 years, 1 month ago (2011-11-11 14:11:09 UTC) #2
ngeoffray
LGTM, if Ivan (who I think was the original contributor of the class?) is OK ...
9 years, 1 month ago (2011-11-11 14:27:23 UTC) #3
ngeoffray
9 years, 1 month ago (2011-11-11 14:29:29 UTC) #4
Ivan Posva
LGTM. Thanks for the cleanup of the documentation. -Ivan http://codereview.chromium.org/8537011/diff/3011/corelib/src/implementation/stopwatch_implementation.dart File corelib/src/implementation/stopwatch_implementation.dart (right): http://codereview.chromium.org/8537011/diff/3011/corelib/src/implementation/stopwatch_implementation.dart#newcode44 corelib/src/implementation/stopwatch_implementation.dart:44: ...
9 years, 1 month ago (2011-11-11 16:31:53 UTC) #5
floitsch
9 years, 1 month ago (2011-11-14 13:55:59 UTC) #6
http://codereview.chromium.org/8537011/diff/3011/corelib/src/implementation/s...
File corelib/src/implementation/stopwatch_implementation.dart (right):

http://codereview.chromium.org/8537011/diff/3011/corelib/src/implementation/s...
corelib/src/implementation/stopwatch_implementation.dart:44: _start =
Clock.now();
On 2011/11/11 16:31:54, Ivan Posva wrote:
> A comment why it is OK to not set _start to null would be helpful.

Done.

http://codereview.chromium.org/8537011/diff/3011/corelib/src/stopwatch.dart
File corelib/src/stopwatch.dart (right):

http://codereview.chromium.org/8537011/diff/3011/corelib/src/stopwatch.dart#n...
corelib/src/stopwatch.dart:30: * If the [Stopwatch] is currently not running,
then calling stop does nothing.
On 2011/11/11 16:31:54, Ivan Posva wrote:
> line too long?

Done.

http://codereview.chromium.org/8537011/diff/3011/tests/corelib/src/StopwatchT...
File tests/corelib/src/StopwatchTest.dart (right):

http://codereview.chromium.org/8537011/diff/3011/tests/corelib/src/StopwatchT...
tests/corelib/src/StopwatchTest.dart:5: // Dart test program for testing
stopwatch support.
On 2011/11/11 16:31:54, Ivan Posva wrote:
> Please try to preserve history when renaming files.

Done.

Powered by Google App Engine
This is Rietveld 408576698