pub struct Instant {
pub instant: InstantType,
/* private fields */
}
Expand description
Monotonically non-decreasing clock using a driver, similar to std::time::Instant.
Fields§
§instant: InstantType
Implementations§
source§impl Instant
impl Instant
pub fn now(api: ApiImport) -> Self
pub fn refresh(&self) -> Self
pub fn elapsed(&self) -> InstantType
pub fn seconds_elapsed(&self) -> InstantType
pub fn add_duration(&self, time: Duration) -> Self
pub fn is_expire(&self) -> bool
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Instant
impl !Send for Instant
impl !Sync for Instant
impl Unpin for Instant
impl !UnwindSafe for Instant
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