Skip to content

Commit 3ceef79

Browse files
committed
tools: deindent mbop_locale:do_perftest
1 parent 359f93b commit 3ceef79

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tools/mbop_locale.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,12 @@ static void do_perftest(const char *lang)
3333
/* ignore */;
3434
auto now = tp_now();
3535
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-
}
36+
if (delta < std::chrono::seconds(1))
37+
continue;
38+
auto d = std::chrono::duration_cast<std::chrono::microseconds>(delta) / fcount;
39+
fprintf(stderr, "\r\e[2K%llu µs\e[K", static_cast<unsigned long long>(d.count()));
40+
t_start = now;
41+
fcount = 0;
4242
}
4343
}
4444

0 commit comments

Comments
 (0)