| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 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 | 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 // 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 |
| 6 // significant change. Please see the README file for more information. | 6 // significant change. Please see the README file for more information. |
| 7 | 7 |
| 8 library engine.utilities.general; | 8 library engine.utilities.general; |
| 9 | 9 |
| 10 /** | 10 /** |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 * Stops counting time and updates counter. | 51 * Stops counting time and updates counter. |
| 52 */ | 52 */ |
| 53 void stop() { | 53 void stop() { |
| 54 _counter._sw.stop(); | 54 _counter._sw.stop(); |
| 55 // restore previous counter and resume it | 55 // restore previous counter and resume it |
| 56 TimeCounter._current = _prev; | 56 TimeCounter._current = _prev; |
| 57 if (_prev != null) { | 57 if (_prev != null) { |
| 58 _prev._sw.start(); | 58 _prev._sw.start(); |
| 59 } | 59 } |
| 60 } | 60 } |
| 61 } | 61 } |
| OLD | NEW |