We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 359f93b commit 3ceef79Copy full SHA for 3ceef79
tools/mbop_locale.cpp
@@ -33,12 +33,12 @@ static void do_perftest(const char *lang)
33
/* ignore */;
34
auto now = tp_now();
35
auto delta = now - t_start;
36
- if (delta >= std::chrono::seconds(1)) {
37
- auto d = std::chrono::duration_cast<std::chrono::microseconds>(delta) / fcount;
38
- fprintf(stderr, "\r\e[2K%llu µs\e[K", static_cast<unsigned long long>(d.count()));
39
- t_start = now;
40
- fcount = 0;
41
- }
+ if (delta < std::chrono::seconds(1))
+ continue;
+ auto d = std::chrono::duration_cast<std::chrono::microseconds>(delta) / fcount;
+ fprintf(stderr, "\r\e[2K%llu µs\e[K", static_cast<unsigned long long>(d.count()));
+ t_start = now;
+ fcount = 0;
42
}
43
44
0 commit comments