Index: src/ports/SkTime_win.cpp |
diff --git a/src/ports/SkTime_win.cpp b/src/ports/SkTime_win.cpp |
index a48a69e88e81ae86330e5236feb2cdac820ea3a8..37af9f29f5bb2102c3ef5e44dc28c5872d4403c8 100644 |
--- a/src/ports/SkTime_win.cpp |
+++ b/src/ports/SkTime_win.cpp |
@@ -9,7 +9,8 @@ |
#include "SkTime.h" |
-void SkTime::GetDateTime(DateTime* dt) { |
+void SkTime::GetDateTime(DateTime* dt) |
+{ |
if (dt) |
{ |
SYSTEMTIME st; |
@@ -25,12 +26,13 @@ |
} |
} |
-SkNSec SkTime::GetNSecs() { |
+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 * 100); |
+ return (SkMSec)(t / 10000); /* In milliseconds */ |
} |