| 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 touch; | 5 part of touch; |
| 6 | 6 |
| 7 /** | 7 /** |
| 8 * Convenience methods for dealing with time. | 8 * Convenience methods for dealing with time. |
| 9 * In the future this could also provide an entry point to mock out time | 9 * In the future this could also provide an entry point to mock out time |
| 10 * calulation for tests. | 10 * calulation for tests. |
| 11 */ | 11 */ |
| 12 class TimeUtil { | 12 class TimeUtil { |
| 13 static int now() { | 13 static int now() { |
| 14 return new Date.now().millisecondsSinceEpoch; | 14 return new DateTime.now().millisecondsSinceEpoch; |
| 15 } | 15 } |
| 16 } | 16 } |
| OLD | NEW |