| Cv2GetCpuTickCount Method |
Returns the number of CPU ticks.
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 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
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 monotonously
increasing values. Also, since a modern CPU 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, getTickCount is generally
a preferable solution for measuringexecution time.
Namespace:
OpenCvSharp
Assembly:
OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0
Syntax public static long GetCpuTickCount()
Public Shared Function GetCpuTickCount As Long
public:
static long long GetCpuTickCount()
static member GetCpuTickCount : unit -> int64
Return Value
Type:
Int64[Missing <returns> documentation for "M:OpenCvSharp.Cv2.GetCpuTickCount"]
See Also