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

Unified Diff: src/ports/SkTime_win.cpp

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 | « src/ports/SkTime_Unix.cpp ('k') | tools/timer/GpuTimer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ports/SkTime_win.cpp
diff --git a/src/ports/SkTime_win.cpp b/src/ports/SkTime_win.cpp
index 19f4695a86bc498c76cb1d81d26e69e63ea70348..2bd5062c3c6437a1c4bc8197b0ed13ece450294d 100644
--- a/src/ports/SkTime_win.cpp
+++ b/src/ports/SkTime_win.cpp
@@ -39,14 +39,3 @@ void SkTime::GetDateTime(DateTime* dt)
dt->fSecond = SkToU8(st.wSecond);
}
}
-
-SkMSec SkTime::GetMSecs()
-{
- FILETIME ft;
- LARGE_INTEGER li;
- GetSystemTimeAsFileTime(&ft);
- li.LowPart = ft.dwLowDateTime;
- li.HighPart = ft.dwHighDateTime;
- __int64 t = li.QuadPart; /* In 100-nanosecond intervals */
- return (SkMSec)(t / 10000); /* In milliseconds */
-}
« no previous file with comments | « src/ports/SkTime_Unix.cpp ('k') | tools/timer/GpuTimer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698