]> git.cworth.org Git - apitrace/blobdiff - common/os_posix.cpp
Make os::getTime() inline and make time frequency OS-dependent variable.
[apitrace] / common / os_posix.cpp
index e6af7383f35b6a78b4efad1fcf1339bb8a3f5531..261fe88c929409d796b8cbd82ed6ea574dfc9990 100644 (file)
@@ -30,7 +30,6 @@
 #include <stdlib.h>
 
 #include <unistd.h>
-#include <sys/time.h>
 #include <sys/wait.h>
 #include <sys/stat.h>
 #include <fcntl.h>
@@ -159,14 +158,6 @@ log(const char *format, ...)
     logging = false;
 }
 
-long long
-getTime(void)
-{
-    struct timeval tv;
-    gettimeofday(&tv, NULL);
-    return tv.tv_usec + tv.tv_sec*1000000LL;
-}
-
 void
 abort(void)
 {