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

Unified Diff: include/core/SkTime.h

Issue 250243002: Add nanosecond timer. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: sigh, just use %u Created 6 years, 8 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 | « no previous file | include/core/SkTypes.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/core/SkTime.h
diff --git a/include/core/SkTime.h b/include/core/SkTime.h
index 51616d41c741f724ec365243a5aeab6d0ad26faa..c4a7d06fe33b2eda7d51c75a7ec6dfe0d03d0e36 100644
--- a/include/core/SkTime.h
+++ b/include/core/SkTime.h
@@ -28,7 +28,9 @@ public:
};
static void GetDateTime(DateTime*);
- static SkMSec GetMSecs();
+ static SkMSec GetMSecs() { return GetNSecs() / 1000000; }
+
+ static SkNSec GetNSecs();
};
#if defined(SK_DEBUG) && defined(SK_BUILD_FOR_WIN32)
« no previous file with comments | « no previous file | include/core/SkTypes.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698