mirror of
https://github.com/google/benchmark.git
synced 2025-01-14 22:00:33 +08:00
Fix division in CPU usage calculation on Windows.
This commit is contained in:
parent
2cf277b6f6
commit
cf830f731f
@ -305,7 +305,7 @@ static double MyCPUUsageRUsage() {
|
||||
user.HighPart = user_time.dwHighDateTime;
|
||||
user.LowPart = user_time.dwLowDateTime;
|
||||
return (static_cast<double>(kernel.QuadPart) +
|
||||
static_cast<double>(user.QuadPart)) / 1.0E-7;
|
||||
static_cast<double>(user.QuadPart)) / 1.0E7;
|
||||
#endif // OS_WINDOWS
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user