pub trait TickMeterTraitConst {
    fn as_raw_TickMeter(&self) -> *const c_void;

    fn get_time_ticks(&self) -> Result<i64> { ... }
    fn get_time_micro(&self) -> Result<f64> { ... }
    fn get_time_milli(&self) -> Result<f64> { ... }
    fn get_time_sec(&self) -> Result<f64> { ... }
    fn get_counter(&self) -> Result<i64> { ... }
    fn get_fps(&self) -> Result<f64> { ... }
    fn get_avg_time_sec(&self) -> Result<f64> { ... }
    fn get_avg_time_milli(&self) -> Result<f64> { ... }
}
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

Required Methods

Provided Methods

returns counted ticks.

returns passed time in microseconds.

returns passed time in milliseconds.

returns passed time in seconds.

returns internal counter value.

returns average FPS (frames per second) value.

returns average time in seconds

returns average time in milliseconds

Implementors