mirror of
https://github.com/google/benchmark.git
synced 2025-02-06 01:00:17 +08:00
Fix typo in timer.cc that caused negative CPU times on OS X. Fixes #293
This commit is contained in:
parent
721c9224b9
commit
57a22c69b3
@ -83,7 +83,7 @@ double MakeTime(thread_basic_info_data_t const& info) {
|
||||
return (static_cast<double>(info.user_time.seconds) +
|
||||
static_cast<double>(info.user_time.microseconds) * 1e-6 +
|
||||
static_cast<double>(info.system_time.seconds) +
|
||||
static_cast<double>(info.user_time.microseconds) * 1e-6);
|
||||
static_cast<double>(info.system_time.microseconds) * 1e-6);
|
||||
}
|
||||
#endif
|
||||
#if defined(CLOCK_PROCESS_CPUTIME_ID) || defined(CLOCK_THREAD_CPUTIME_ID)
|
||||
|
Loading…
Reference in New Issue
Block a user