Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(124)

Unified Diff: runtime/bin/timer_impl.dart

Issue 10538105: Make isUtc a getter, change some method names in Date. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments. Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/bin/http_utils.dart ('k') | runtime/lib/date.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
« no previous file with comments | « runtime/bin/http_utils.dart ('k') | runtime/lib/date.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698