| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 part of common; | 5 part of common; |
| 6 | 6 |
| 7 // A utility object for measuring time intervals. | 7 // A utility object for measuring time intervals. |
| 8 | 8 |
| 9 class Interval { | 9 class Interval { |
| 10 int _start, _stop; | 10 int _start, _stop; |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 // Microseconds from between start() and stop(). | 23 // Microseconds from between start() and stop(). |
| 24 int get elapsedMicrosec { | 24 int get elapsedMicrosec { |
| 25 return (_stop - _start) * 1000; | 25 return (_stop - _start) * 1000; |
| 26 } | 26 } |
| 27 | 27 |
| 28 // Milliseconds from between start() and stop(). | 28 // Milliseconds from between start() and stop(). |
| 29 int get elapsedMillisec { | 29 int get elapsedMillisec { |
| 30 return (_stop - _start); | 30 return (_stop - _start); |
| 31 } | 31 } |
| 32 } | 32 } |
| OLD | NEW |