timeit

Robust timing of a function. More...

double timeit (void(*fn)())
 

Detailed Description

Robust timing of a function.

Robust timing of a function (both CPU or GPU).

Parameters
[in]fnvoid function pointer referencing code to time.

See Timing Your Code for example usage.

Function Documentation