pub struct TickMeter { /* private fields */ }Expand description
a Class to measure passing time.
The class computes passing time by counting the number of ticks per second. That is, the following code computes the execution time in seconds: TickMeter_total
It is also possible to compute the average time over multiple runs: TickMeter_average
See also
getTickCount, getTickFrequency
Implementations
Trait Implementations
sourceimpl Boxed for TickMeter
impl Boxed for TickMeter
sourceimpl TickMeterTrait for TickMeter
impl TickMeterTrait for TickMeter
sourceimpl TickMeterTraitConst for TickMeter
impl TickMeterTraitConst for TickMeter
fn as_raw_TickMeter(&self) -> *const c_void
sourcefn get_time_ticks(&self) -> Result<i64>
fn get_time_ticks(&self) -> Result<i64>
returns counted ticks.
sourcefn get_time_micro(&self) -> Result<f64>
fn get_time_micro(&self) -> Result<f64>
returns passed time in microseconds.
sourcefn get_time_milli(&self) -> Result<f64>
fn get_time_milli(&self) -> Result<f64>
returns passed time in milliseconds.
sourcefn get_time_sec(&self) -> Result<f64>
fn get_time_sec(&self) -> Result<f64>
returns passed time in seconds.
sourcefn get_counter(&self) -> Result<i64>
fn get_counter(&self) -> Result<i64>
returns internal counter value.
sourcefn get_avg_time_sec(&self) -> Result<f64>
fn get_avg_time_sec(&self) -> Result<f64>
returns average time in seconds
sourcefn get_avg_time_milli(&self) -> Result<f64>
fn get_avg_time_milli(&self) -> Result<f64>
returns average time in milliseconds
impl Send for TickMeter
Auto Trait Implementations
impl RefUnwindSafe for TickMeter
impl !Sync for TickMeter
impl Unpin for TickMeter
impl UnwindSafe for TickMeter
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