Trait TickMeterTraitConst

Source
pub trait TickMeterTraitConst {
Show 13 methods // Required method fn as_raw_TickMeter(&self) -> *const c_void; // Provided methods 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_last_time_ticks(&self) -> Result<i64> { ... } fn get_last_time_micro(&self) -> Result<f64> { ... } fn get_last_time_milli(&self) -> Result<f64> { ... } fn get_last_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

Constant methods for core::TickMeter

Required Methods§

Provided Methods§

Source

fn get_time_ticks(&self) -> Result<i64>

returns counted ticks.

Source

fn get_time_micro(&self) -> Result<f64>

returns passed time in microseconds.

Source

fn get_time_milli(&self) -> Result<f64>

returns passed time in milliseconds.

Source

fn get_time_sec(&self) -> Result<f64>

returns passed time in seconds.

Source

fn get_last_time_ticks(&self) -> Result<i64>

returns counted ticks of the last iteration.

Source

fn get_last_time_micro(&self) -> Result<f64>

returns passed time of the last iteration in microseconds.

Source

fn get_last_time_milli(&self) -> Result<f64>

returns passed time of the last iteration in milliseconds.

Source

fn get_last_time_sec(&self) -> Result<f64>

returns passed time of the last iteration in seconds.

Source

fn get_counter(&self) -> Result<i64>

returns internal counter value.

Source

fn get_fps(&self) -> Result<f64>

returns average FPS (frames per second) value.

Source

fn get_avg_time_sec(&self) -> Result<f64>

returns average time in seconds

Source

fn get_avg_time_milli(&self) -> Result<f64>

returns average time in milliseconds

Implementors§