Retrieves the current value of the high-resolution performance counter and compute the delta time between current time and previous call of any of the HiResTimer_... functions.
n = HiResTimer_Delta
Returned value are the microseconds elapsed.
This function also internally store the last execution timer in order to be able to compute delta timing.
Attention: the function calling itself add some few microseconds overhead.
Dim T1, T2 As QUAD
'---Initialize hi resolution timer
'---Do whatever needed to be measured.
'---Here just sleep for 100 millisecs
T1 = HiResTimer_Delta
'---Do something else
'---Here just sleep for other 200 millisecs
T2 = HiResTimer_Delta
PRINTL "Elapsed time for step 1 is " & T1 & "(microseconds)"
PRINTL "Elapsed time for step 2 is " & T2 & "(microseconds)"