This documentation was styled with a demo skin from the Premium Pack 4 add-on for Help & Manual. The contents of the skin are encrypted and not configurable. You can only publish HM projects with this skin. You cannot edit it or change it.
This version is copyright and may only be used for local testing purposes. It may not be distributed.
Please purchase the full version of the Premium Pack to get the configurable skins and remove this notice. The package will also include the Toolbox configuration utility for Premium Pack skins.
Description
Check and initialize the high-resolution performance counter.
Syntax
n = HiResTimer_Init
Returns
Number
%TRUE if the installed hardware supports a high-resolution performance counter
Parameters
Name |
Type |
Optional |
Meaning |
Remarks
Call this function once before calling any HiResTimer_Get or HiResTimer_Delta.
This function also internally store the last execution timer in order to be able to compute delta timing just calling HiResTimer_Delta function.
Restrictions
Attention: the function calling itself add some few microseconds overhead.
See also
Examples
'...
Dim T1, T2 As QUAD
'---Initialize hi resolution timer
HiResTimer_Init
T1 = HiResTimer_Get
'---Do whatever needed to be measured
T2 = HiResTimer_Get
MSGBOX 0, "Elapsed time in microseconds: " & FORMAT$(T2-T1, "#0")