mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-21 23:01:05 +00:00
6 lines
178 B
Rust
6 lines
178 B
Rust
use std::time::{SystemTime, UNIX_EPOCH};
|
|
|
|
#[inline]
|
|
pub fn timestamp_us() -> u64 {
|
|
SystemTime::now().duration_since(UNIX_EPOCH).expect("Time went backwards").as_micros() as _
|
|
}
|