[evmbin] fix time formatting (#11060)

This commit is contained in:
Andronik Ordian 2019-09-16 15:14:34 +02:00 committed by GitHub
parent 61a7c30ed5
commit bceb1d5691
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -24,7 +24,7 @@ pub mod simple;
/// Formats duration into human readable format. /// Formats duration into human readable format.
pub fn format_time(time: &Duration) -> String { pub fn format_time(time: &Duration) -> String {
format!("{}.{:.9}s", time.as_secs(), time.subsec_nanos()) format!("{}.{:09}s", time.as_secs(), time.subsec_nanos())
} }
/// Formats the time as microseconds. /// Formats the time as microseconds.