mirror of
https://github.com/aljazceru/turso.git
synced 2026-02-04 07:44:24 +01:00
Add Clock trait
This commit is contained in:
9
core/io/clock.rs
Normal file
9
core/io/clock.rs
Normal file
@@ -0,0 +1,9 @@
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord)]
|
||||
pub struct Instant {
|
||||
pub secs: i64,
|
||||
pub micros: u32,
|
||||
}
|
||||
|
||||
pub trait Clock {
|
||||
fn now(&self) -> Instant;
|
||||
}
|
||||
Reference in New Issue
Block a user