pub struct QuantaClock { /* private fields */ }
Implementations§
Source§impl QuantaClock
impl QuantaClock
pub fn new() -> QuantaClock
Trait Implementations§
Source§impl Clock for QuantaClock
impl Clock for QuantaClock
Source§fn get_instant(&self) -> Instant
fn get_instant(&self) -> Instant
Returns current tsc instant
Source§fn compute_system_time_from_instant(
&self,
instant: Instant,
) -> Result<DateTime<Utc>, OutOfRangeError>
fn compute_system_time_from_instant( &self, instant: Instant, ) -> Result<DateTime<Utc>, OutOfRangeError>
Returns system time from TSC time
Auto Trait Implementations§
impl !Freeze for QuantaClock
impl RefUnwindSafe for QuantaClock
impl Send for QuantaClock
impl Sync for QuantaClock
impl Unpin for QuantaClock
impl UnwindSafe for QuantaClock
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more