1
0
Fork 0
mirror of synced 2024-05-03 03:52:58 +12:00
czkawka/czkawka_core/src/common.rs
2020-09-11 15:52:06 +02:00

14 lines
424 B
Rust

use std::time::SystemTime;
/// Class for common functions used across other class/functions
pub struct Common();
impl Common {
pub fn print_time(start_time: SystemTime, end_time: SystemTime, function_name: String) {
if true {
return;
}
println!("Execution of function \"{}\" took {:?}", function_name, end_time.duration_since(start_time).expect("Time cannot go reverse."));
}
}