mirror of https://github.com/qarmin/czkawka
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
471 B
Rust
17 lines
471 B
Rust
4 years ago
|
use std::time::SystemTime;
|
||
|
|
||
4 years ago
|
/// Class for common functions used across other class/functions
|
||
|
|
||
4 years ago
|
pub struct Common();
|
||
|
impl Common {
|
||
|
pub fn print_time(start_time: SystemTime, end_time: SystemTime, function_name: String) {
|
||
4 years ago
|
if false {
|
||
|
println!(
|
||
|
"Execution of function \"{}\" took {:?}",
|
||
|
function_name,
|
||
|
end_time.duration_since(start_time).expect("Time cannot go reverse.")
|
||
|
);
|
||
|
}
|
||
4 years ago
|
}
|
||
|
}
|