diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2019-11-21 09:04:16 +0000 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2019-11-21 09:04:16 +0000 |
commit | bb85dda164515a47fb99173d0c642a52dd5283c7 (patch) | |
tree | b4789a3b18e6e7b835bc785edcbd785962c48f7b /fastos/src | |
parent | 490bdc5f1c510ca05ed709008fdd74226bba36d1 (diff) |
remove redundant if and inline simple method.
Diffstat (limited to 'fastos/src')
-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); |