mirror of
https://github.com/google/benchmark.git
synced 2025-01-14 13:50:13 +08:00
Revert "prevent unneeded calculation of Slow()"
The calculation was actually inside the loop for a reason.
This reverts commit 47442b9054
.
This commit is contained in:
parent
47442b9054
commit
48c4c9cf50
@ -110,11 +110,11 @@ WallTime WallTimeImp::Now() {
|
||||
return result + GetDrift();
|
||||
}
|
||||
|
||||
now = Slow();
|
||||
} while (cycleclock::Now() - ct > max_interval_cycles_);
|
||||
// We are now sure that "now" and "result" were produced within
|
||||
// kMaxErrorInterval of one another.
|
||||
|
||||
now = Slow();
|
||||
SetDrift(now - result);
|
||||
last_adjust_time_ = top_bits;
|
||||
return now;
|
||||
|
Loading…
Reference in New Issue
Block a user