dart-sdk/sdk
Lasse R.H. Nielsen c3bb3ddb41 Make Stopwatch logic simpler.
The `Stopwatch` class had more states than necessary because it started with
the `_start` and `_stop` fields being `null`, a state that couldn't happen later,
and it had to handle those cases specially.
Now just starts in a state equivalent to a stopped, reset timer.
Also use ?? and ??= because they are there,and don't call the overridable `isRunning` from other methods.

R=floitsch@google.com

Review URL: https://codereview.chromium.org/2485063003 .
2016-11-11 10:01:25 +01:00
..
bin Tools not running from snapshots should use /.packages 2016-09-26 18:47:32 +02:00
lib Make Stopwatch logic simpler. 2016-11-11 10:01:25 +01:00
api_readme.md fix links in readme 2015-08-20 13:17:34 -07:00