diff options
Diffstat (limited to 'bench/BenchTimer.h')
-rw-r--r-- | bench/BenchTimer.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bench/BenchTimer.h b/bench/BenchTimer.h index 6889654fe..a32495d60 100644 --- a/bench/BenchTimer.h +++ b/bench/BenchTimer.h @@ -126,8 +126,9 @@ public: inline double getRealTime() { #ifdef WIN32 - // TODO - return getCputime; + SYSTEMTIME st; + GetSystemTime(&st); + return (double)st.wSecond + 1.e-6 * (double)st.wMilliseconds; #else struct timeval tv; struct timezone tz; |