Correct time

This commit is contained in:
2024-03-22 16:34:06 +05:00
parent aeceb98ad5
commit b577904d75
3 changed files with 4 additions and 4 deletions

View File

@ -47,7 +47,7 @@ pub fn time() -> u32 {
.as_secs() as u32
}
pub fn time_ns() -> u128 {
pub fn time_mcs() -> u128 {
SystemTime::now()
.duration_since(UNIX_EPOCH)
.unwrap()