]> git.cworth.org Git - apitrace/blobdiff - common/os_win32.cpp
Make os::getTime() inline and make time frequency OS-dependent variable.
[apitrace] / common / os_win32.cpp
index 7b35ccf8cacf322338fa1107fffc3af40cc6affa..199ae5a7e4a656be9b41c24d8c53090acabe0360 100644 (file)
@@ -213,16 +213,7 @@ log(const char *format, ...)
 #endif
 }
 
-long long
-getTime(void)
-{
-    static LARGE_INTEGER frequency;
-    LARGE_INTEGER counter;
-    if (!frequency.QuadPart)
-        QueryPerformanceFrequency(&frequency);
-    QueryPerformanceCounter(&counter);
-    return counter.QuadPart*1000000LL/frequency.QuadPart;
-}
+long long timeFrequency = 0LL;
 
 void
 abort(void)