Revert of Add nanosecond timer. (https://codereview.chromium.org/250243002/)
Reason for revert:
breaks EVERYTHING
Original issue's description:
> Add nanosecond timer.
>
> I've been finding it hard to get enough resolution out of our existing timers when measuring really tiny pictures.
>
> BUG=skia:2378
>
> Committed: http://code.google.com/p/skia/source/detail?r=14362
R=bsalomon@google.com, bungeman@google.com, mtklein@chromium.org
TBR=bsalomon@google.com, bungeman@google.com, mtklein@chromium.org
NOTREECHECKS=true
NOTRY=true
BUG=skia:2378
Author: mtklein@google.com
Review URL: https://codereview.chromium.org/258703002
git-svn-id: http://skia.googlecode.com/svn/trunk@14364 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/src/ports/SkTime_win.cpp b/src/ports/SkTime_win.cpp
index a48a69e..37af9f2 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 */
}