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

Unified Diff: include/core/SkTime.h

Issue 1422513003: SkTime::GetNSecs() (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: #else std::chrono Created 5 years, 2 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 | « gyp/tools.gyp ('k') | src/animator/SkTime.cpp » ('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 a8656347aa610c45d3c155b478af5d7c0a25a66f..2cfe3efcb45c6d355032aac671db9d361866b024 100644
--- a/include/core/SkTime.h
+++ b/include/core/SkTime.h
@@ -34,7 +34,8 @@ public:
};
static void GetDateTime(DateTime*);
- static SkMSec GetMSecs();
+ static SkMSec GetMSecs() { return (SkMSec)(GetNSecs() * 1e-6); }
+ static double GetNSecs();
};
#if defined(SK_DEBUG) && defined(SK_BUILD_FOR_WIN32)
« no previous file with comments | « gyp/tools.gyp ('k') | src/animator/SkTime.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698