Function opencv::core::get_tick_frequency [] [src]

pub fn get_tick_frequency() -> Result<f64, String>

Returns the number of ticks per seconds.

The function returns the number of ticks (as returned by cv::getTickCount()) per second. The following code computes the execution time in milliseconds:

\code double exec_time = (double)getTickCount(); // do something ... exec_time = ((double)getTickCount() - exec_time)*1000./getTickFrequency(); \endcode