getCPUTickCount (cv.TickMeter) - MATLAB File Help
cv.TickMeter.getCPUTickCount

Returns the number of CPU ticks

t = cv.TickMeter.getCPUTickCount()

Output

The function returns the current number of CPU ticks on some architectures (such as x86, x64, PowerPC). On other platforms the function is equivalent to cv.TickMeter.getTickCount. It can also be used for very accurate time measurements, as well as for RNG initialization. Note that in case of multi-CPU systems a thread, from which cv.TickMeter.getCPUTickCount is called, can be suspended and resumed at another CPU with its own counter. So, theoretically (and practically) the subsequent calls to the function do not necessary return the monotonically increasing values. Also, since modern CPUs varies the CPU frequency depending on the load, the number of CPU clocks spent in some code cannot be directly converted to time units. Therefore, cv.TickMeter.getTickCount is generally a preferable solution for measuring execution time.

See also
Method Details
Access public
Sealed false
Static true