| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file |
| 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. |
| 4 |
| 1 // This code was auto-generated, is not intended to be edited, and is subject to | 5 // This code was auto-generated, is not intended to be edited, and is subject to |
| 2 // significant change. Please see the README file for more information. | 6 // significant change. Please see the README file for more information. |
| 3 | 7 |
| 4 library engine.utilities.general; | 8 library engine.utilities.general; |
| 5 | 9 |
| 6 /** | 10 /** |
| 7 * Helper for measuring how much time is spent doing some operation. | 11 * Helper for measuring how much time is spent doing some operation. |
| 8 */ | 12 */ |
| 9 class TimeCounter { | 13 class TimeCounter { |
| 10 Stopwatch _sw = new Stopwatch(); | 14 Stopwatch _sw = new Stopwatch(); |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 _counter._sw.start(); | 36 _counter._sw.start(); |
| 33 } | 37 } |
| 34 | 38 |
| 35 /** | 39 /** |
| 36 * Stops counting time and updates counter. | 40 * Stops counting time and updates counter. |
| 37 */ | 41 */ |
| 38 void stop() { | 42 void stop() { |
| 39 _counter._sw.stop(); | 43 _counter._sw.stop(); |
| 40 } | 44 } |
| 41 } | 45 } |
| OLD | NEW |