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
sourceimpl 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
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more