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