mirror of
https://github.com/shadps4-emu/ext-fmt.git
synced 2024-11-23 09:49:42 +00:00
Cleanup test
This commit is contained in:
parent
55e76e6c20
commit
808ea0191a
@ -19,8 +19,7 @@ int main() {
|
|||||||
std::atomic_signal_fence(std::memory_order_acq_rel); // Clobber memory.
|
std::atomic_signal_fence(std::memory_order_acq_rel); // Clobber memory.
|
||||||
auto end = std::chrono::steady_clock::now();
|
auto end = std::chrono::steady_clock::now();
|
||||||
|
|
||||||
|
// Print time in milliseconds.
|
||||||
std::chrono::duration<double> duration = end - start;
|
std::chrono::duration<double> duration = end - start;
|
||||||
double total_time = duration.count() * 1000; // Convert to milliseconds.
|
fmt::print("{:.1f}\n", duration.count() * 1000);
|
||||||
fmt::print("Total time for formatting {} strings: {:.1f} ms.\n", n,
|
|
||||||
total_time);
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user