1
0
Fork 0
mirror of synced 2024-04-27 17:22:13 +12:00
czkawka/src/common.rs
2020-09-01 17:10:54 +02:00

15 lines
405 B
Rust

use std::time::SystemTime;
pub struct Common();
impl Common {
pub fn print_time(start_time: SystemTime, end_time: SystemTime, function_name: String) {
if false {
println!(
"Execution of function \"{}\" took {:?}",
function_name,
end_time.duration_since(start_time).expect("Time cannot go reverse.")
);
}
}
}