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

Unified Diff: runtime/vm/scope_timer.h

Issue 2582543003: Update GC stats, ThreadPool, Timer and ScopedTimer to use monotonic time. (Closed)
Patch Set: . Created 4 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/vm/scavenger.cc ('k') | runtime/vm/thread_pool.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/scope_timer.h
diff --git a/runtime/vm/scope_timer.h b/runtime/vm/scope_timer.h
index 1266f292793cdced4a671e59dbaf57b8dbed3c97..c8952254c20a7c0ff0e47c63166c036ea3f118ff 100644
--- a/runtime/vm/scope_timer.h
+++ b/runtime/vm/scope_timer.h
@@ -17,11 +17,11 @@ class ScopeTimer : public ValueObject {
if (!enabled_) {
return;
}
- start_ = OS::GetCurrentTimeMicros();
+ start_ = OS::GetCurrentMonotonicMicros();
}
int64_t GetElapsed() const {
- int64_t end = OS::GetCurrentTimeMicros();
+ int64_t end = OS::GetCurrentMonotonicMicros();
ASSERT(end >= start_);
return end - start_;
}
« no previous file with comments | « runtime/vm/scavenger.cc ('k') | runtime/vm/thread_pool.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698