Index: src/ports/SkTime_win.cpp |
diff --git a/src/ports/SkTime_win.cpp b/src/ports/SkTime_win.cpp |
index 2bd5062c3c6437a1c4bc8197b0ed13ece450294d..19f4695a86bc498c76cb1d81d26e69e63ea70348 100644 |
--- a/src/ports/SkTime_win.cpp |
+++ b/src/ports/SkTime_win.cpp |
@@ -39,3 +39,14 @@ |
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 */ |
+} |