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

Unified Diff: runtime/vm/os_fuchsia.cc

Issue 2466003002: Remove use of the deprecated mx_current_time Fuchsia syscall (Closed)
Patch Set: missed a spot Created 4 years, 1 month 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/utils_fuchsia.cc ('k') | runtime/vm/os_thread_fuchsia.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/os_fuchsia.cc
diff --git a/runtime/vm/os_fuchsia.cc b/runtime/vm/os_fuchsia.cc
index f904926548d1aa03e83e525a1d91c28c916a008f..41a5d96be7d131306a25d70cab7223a74c3c25a2 100644
--- a/runtime/vm/os_fuchsia.cc
+++ b/runtime/vm/os_fuchsia.cc
@@ -75,12 +75,12 @@ int64_t OS::GetCurrentTimeMillis() {
int64_t OS::GetCurrentTimeMicros() {
- return mx_current_time() / 1000;
+ return mx_time_get(MX_CLOCK_MONOTONIC) / 1000;
}
int64_t OS::GetCurrentMonotonicTicks() {
- return mx_current_time();
+ return mx_time_get(MX_CLOCK_MONOTONIC);
}
« no previous file with comments | « runtime/bin/utils_fuchsia.cc ('k') | runtime/vm/os_thread_fuchsia.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698