Kaydet (Commit) cb874aff authored tarafından Tor Lillqvist's avatar Tor Lillqvist

Result should be in seconds, not microseconds

Change-Id: Ic269b120c5c29ab12eb982d46132381d1891d217
üst 1bd21f80
......@@ -157,7 +157,7 @@ double timerCurrent(timer* mytimer)
if (info.numer == 0)
mach_timebase_info(&info);
long long stop = mach_absolute_time();
double time = ((stop - mytimer->start) * (double) info.numer / info.denom) / 1000.0;
double time = ((stop - mytimer->start) * (double) info.numer / info.denom) / 1.0E9;
#else
struct timespec s;
long long stop;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment