mirror of
https://github.com/tursodatabase/limbo.git
synced 2025-08-04 18:18:03 +00:00
Add Clock
trait
This commit is contained in:
parent
e3c064fc47
commit
02ee2cf90e
1 changed files with 9 additions and 0 deletions
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;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue