Retrieves the current value of the high-resolution performance counter.
n = HiResTimer_Get
Returned value are the microseconds elapsed.
This function also internally store the last execution timer in order to be able to compute delta timing just calling HiResTimer_Delta function.
Attention: the function calling itself add some few microseconds overhead.
Dim T1, T2 As QUAD
'---Initialize hi resolution timer
T1 = HiResTimer_Get
'---Do whatever needed to be measured
T2 = HiResTimer_Get
MSGBOX 0, "Elapsed time in microseconds: " & FORMAT$(T2-T1, "#0")