[−][src]Struct opencv::core::TickMeter
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
impl TickMeter
[src]
pub fn as_raw_TickMeter(&self) -> *const c_void
[src]
pub fn as_raw_mut_TickMeter(&mut self) -> *mut c_void
[src]
impl TickMeter
[src]
Trait Implementations
impl Boxed for TickMeter
[src]
unsafe fn from_raw(ptr: *mut c_void) -> Self
[src]
fn into_raw(self) -> *mut c_void
[src]
fn as_raw(&self) -> *const c_void
[src]
fn as_raw_mut(&mut self) -> *mut c_void
[src]
impl Drop for TickMeter
[src]
impl Send for TickMeter
[src]
impl TickMeterTrait for TickMeter
[src]
fn as_raw_TickMeter(&self) -> *const c_void
[src]
fn as_raw_mut_TickMeter(&mut self) -> *mut c_void
[src]
fn start(&mut self) -> Result<()>
[src]
fn stop(&mut self) -> Result<()>
[src]
fn get_time_ticks(&self) -> Result<i64>
[src]
fn get_time_micro(&self) -> Result<f64>
[src]
fn get_time_milli(&self) -> Result<f64>
[src]
fn get_time_sec(&self) -> Result<f64>
[src]
fn get_counter(&self) -> Result<i64>
[src]
fn get_fps(&self) -> Result<f64>
[src]
fn get_avg_time_sec(&self) -> Result<f64>
[src]
fn get_avg_time_milli(&self) -> Result<f64>
[src]
fn reset(&mut self) -> Result<()>
[src]
Auto Trait Implementations
impl RefUnwindSafe for TickMeter
impl !Sync for TickMeter
impl Unpin for TickMeter
impl UnwindSafe for TickMeter
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,