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

Unified Diff: runtime/vm/os.h

Issue 1563473002: Refactor monotonic clock interface and use raw tick values in stopwatch (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 11 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/lib/stopwatch.cc ('k') | runtime/vm/os_android.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/os.h
diff --git a/runtime/vm/os.h b/runtime/vm/os.h
index a403df2bd04b269beb9ff30d4c1cadebd407cf24..cd570c4bcabe650095a21cc7455d064f5dc8f6d5 100644
--- a/runtime/vm/os.h
+++ b/runtime/vm/os.h
@@ -50,6 +50,12 @@ class OS {
// Returns the current time used by the tracing infrastructure.
static int64_t GetCurrentMonotonicMicros();
+ // Returns the raw clock value from the monotonic clock.
+ static int64_t GetCurrentMonotonicTicks();
+
+ // Returns the frequency of the monotonic clock.
+ static int64_t GetCurrentMonotonicFrequency();
+
// Returns a cleared aligned array of type T with n entries.
// Alignment must be >= 16 and a power of two.
template<typename T>
« no previous file with comments | « runtime/lib/stopwatch.cc ('k') | runtime/vm/os_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698