Utility and System Functions and Macros

Error Handling

GetTickCount

int64 cvGetTickCount(void)

Returns the number of ticks.

The function returns number of the ticks starting from some platform-dependent event (number of CPU ticks from the startup, number of milliseconds from 1970th year, etc.). The function is useful for accurate measurement of a function/user-code execution time. To convert the number of ticks to time units, use GetTickFrequency.

GetTickFrequency

double cvGetTickFrequency(void)

Returns the number of ticks per microsecond.

The function returns the number of ticks per microsecond. Thus, the quotient of GetTickCount and GetTickFrequency will give the number of microseconds starting from the platform-dependent event.

Table Of Contents

Previous topic

Clustering and Search in Multi-Dimensional Spaces

Next topic

cv. Image Processing and Computer Vision

This Page