[−][src]Struct dipstick::TimeHandle
A handle to the start time of a counter. Wrapped so it may be changed safely later.
Implementations
impl TimeHandle
[src]
pub fn now() -> TimeHandle
[src]
Get a handle on current time. Used by the TimerMetric start_time() method.
pub fn elapsed_us(self) -> u64
[src]
Get the elapsed time in microseconds since TimeHandle was obtained.
pub fn elapsed_ms(self) -> MetricValue
[src]
Get the elapsed time in milliseconds since TimeHandle was obtained.
Trait Implementations
impl Clone for TimeHandle
[src]
fn clone(&self) -> TimeHandle
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for TimeHandle
[src]
impl Debug for TimeHandle
[src]
impl Default for TimeHandle
[src]
Auto Trait Implementations
impl RefUnwindSafe for TimeHandle
impl Send for TimeHandle
impl Sync for TimeHandle
impl Unpin for TimeHandle
impl UnwindSafe for TimeHandle
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,