diff options
Diffstat (limited to 'fastos')
-rw-r--r-- | fastos/src/vespa/fastos/timestamp.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/fastos/src/vespa/fastos/timestamp.cpp b/fastos/src/vespa/fastos/timestamp.cpp index ae6bef1e317..deceaee4c65 100644 --- a/fastos/src/vespa/fastos/timestamp.cpp +++ b/fastos/src/vespa/fastos/timestamp.cpp @@ -104,9 +104,7 @@ StopWatch::waitAtLeast(std::chrono::microseconds us, bool busyWait) { if (busyWait) { steady_clock::time_point deadline = steady_clock::now() + us; while (steady_clock::now() < deadline) { - if (busyWait) { - for (int i = 0; i < 1000; i++) { } - } + for (int i = 0; i < 1000; i++) { } } } else { std::this_thread::sleep_for(us); |