| Index: runtime/bin/timer_impl.dart
|
| diff --git a/runtime/bin/timer_impl.dart b/runtime/bin/timer_impl.dart
|
| index b55923fc7f1e485825f43bf99bba2f0c2bd9e9a3..41d40be19d2d8d7792fdb8125cb784057e587eea 100644
|
| --- a/runtime/bin/timer_impl.dart
|
| +++ b/runtime/bin/timer_impl.dart
|
| @@ -19,7 +19,7 @@ class _Timer implements Timer {
|
| Timer timer = new _Timer._internal();
|
| timer._callback = callback;
|
| timer._milliSeconds = milliSeconds;
|
| - timer._wakeupTime = (new Date.now()).value + milliSeconds;
|
| + timer._wakeupTime = (new Date.now()).millisecondsSinceEpoch + milliSeconds;
|
| timer._repeating = repeating;
|
| timer._addTimerToList();
|
| timer._notifyEventHandler();
|
| @@ -120,7 +120,8 @@ class _Timer implements Timer {
|
| void _createTimerHandler() {
|
|
|
| void _handleTimeout() {
|
| - int currentTime = (new Date.now()).value + _TIMER_JITTER;
|
| + int currentTime =
|
| + (new Date.now()).millisecondsSinceEpoch + _TIMER_JITTER;
|
|
|
| // Collect all pending timers.
|
| DoubleLinkedQueueEntry<_Timer> entry = _timers.firstEntry();
|
|
|