improve elapsed time readability for large numbers.

This commit is contained in:
Robin Gareus 2016-04-08 21:50:02 +02:00
parent 94ebad3854
commit 024cf58c05

View file

@ -885,7 +885,7 @@ Session::save_state (string snapshot_name, bool pending, bool switch_to_snapshot
#ifndef NDEBUG #ifndef NDEBUG
const int64_t elapsed_time_us = g_get_monotonic_time() - save_start_time; const int64_t elapsed_time_us = g_get_monotonic_time() - save_start_time;
cerr << "saved state in " << setprecision (1) << elapsed_time_us / 1000. << " ms\n"; cerr << "saved state in " << fixed << setprecision (1) << elapsed_time_us / 1000. << " ms\n";
#endif #endif
return 0; return 0;
} }