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

Unified Diff: runtime/bin/eventhandler.cc

Issue 1519563003: Use a monotonic clock in the implementation of Timer. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years 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/common_patch.dart ('k') | runtime/bin/eventhandler_android.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/eventhandler.cc
diff --git a/runtime/bin/eventhandler.cc b/runtime/bin/eventhandler.cc
index 9e53d5f67ba27efaa9bba2b9be2cb3c7a5c8b253..bb9a7fec383e7a9daad1f4f77b76114481c2ecf6 100644
--- a/runtime/bin/eventhandler.cc
+++ b/runtime/bin/eventhandler.cc
@@ -131,5 +131,12 @@ void FUNCTION_NAME(EventHandler_SendData)(Dart_NativeArguments args) {
event_handler->SendData(id, dart_port, data);
}
+
+void FUNCTION_NAME(EventHandler_TimerMillisecondClock)(
+ Dart_NativeArguments args) {
+ int64_t now = TimerUtils::GetCurrentMonotonicMillis();
+ Dart_SetReturnValue(args, Dart_NewInteger(now));
+}
+
} // namespace bin
} // namespace dart
« no previous file with comments | « runtime/bin/common_patch.dart ('k') | runtime/bin/eventhandler_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698