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§
fn as_raw_TickMeter(&self) -> *const c_void
Provided Methods§
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_last_time_ticks(&self) -> Result<i64>
fn get_last_time_ticks(&self) -> Result<i64>
returns counted ticks of the last iteration.
Sourcefn get_last_time_micro(&self) -> Result<f64>
fn get_last_time_micro(&self) -> Result<f64>
returns passed time of the last iteration in microseconds.
Sourcefn get_last_time_milli(&self) -> Result<f64>
fn get_last_time_milli(&self) -> Result<f64>
returns passed time of the last iteration in milliseconds.
Sourcefn get_last_time_sec(&self) -> Result<f64>
fn get_last_time_sec(&self) -> Result<f64>
returns passed time of the last iteration 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