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§
source§impl Boxed for TickMeter
impl Boxed for TickMeter
source§impl TickMeterTrait for TickMeter
impl TickMeterTrait for TickMeter
source§impl TickMeterTraitConst for TickMeter
impl TickMeterTraitConst for TickMeter
fn as_raw_TickMeter(&self) -> *const c_void
source§fn get_time_ticks(&self) -> Result<i64>
fn get_time_ticks(&self) -> Result<i64>
returns counted ticks.
source§fn get_time_micro(&self) -> Result<f64>
fn get_time_micro(&self) -> Result<f64>
returns passed time in microseconds.
source§fn get_time_milli(&self) -> Result<f64>
fn get_time_milli(&self) -> Result<f64>
returns passed time in milliseconds.
source§fn get_time_sec(&self) -> Result<f64>
fn get_time_sec(&self) -> Result<f64>
returns passed time in seconds.
source§fn get_counter(&self) -> Result<i64>
fn get_counter(&self) -> Result<i64>
returns internal counter value.
source§fn get_avg_time_sec(&self) -> Result<f64>
fn get_avg_time_sec(&self) -> Result<f64>
returns average time in seconds
source§fn get_avg_time_milli(&self) -> Result<f64>
fn get_avg_time_milli(&self) -> Result<f64>
returns average time in milliseconds