Struct dipstick::core::TimeHandle [−][src]
pub struct TimeHandle(_);
A handle to the start time of a counter. Wrapped so it may be changed safely later.
Methods
impl TimeHandle
[src]
impl TimeHandle
pub fn now() -> TimeHandle
[src]
pub fn now() -> TimeHandle
Get a handle on current time. Used by the TimerMetric start_time() method.
pub fn elapsed_us(self) -> Value
[src]
pub fn elapsed_us(self) -> Value
Get the elapsed time in microseconds since TimeHandle was obtained.
pub fn elapsed_ms(self) -> Value
[src]
pub fn elapsed_ms(self) -> Value
Get the elapsed time in microseconds since TimeHandle was obtained.
Trait Implementations
impl Debug for TimeHandle
[src]
impl Debug for TimeHandle
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Copy for TimeHandle
[src]
impl Copy for TimeHandle
impl Clone for TimeHandle
[src]
impl Clone for TimeHandle
fn clone(&self) -> TimeHandle
[src]
fn clone(&self) -> TimeHandle
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl Send for TimeHandle
impl Send for TimeHandle
impl Sync for TimeHandle
impl Sync for TimeHandle