Skip to content

Commit

Permalink
rename duplicate get_time -> with_system_time
Browse files Browse the repository at this point in the history
  • Loading branch information
museun committed Apr 20, 2023
1 parent 490c618 commit 84e724b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ mod reference {
*TIME.get_or_init(Mutex::default).lock().unwrap()
}

pub fn get_time() -> Duration {
pub fn with_system_time() -> Duration {
let t = SYSTEM_TIME.get_or_init(Mutex::default);
let mut t = t.lock().unwrap();
d(&mut t);
Expand Down

0 comments on commit 84e724b

Please sign in to comment.