GetTickCount64 function (sysinfoapi.h)
Retrieves the number of milliseconds that have elapsed since the system was started.
Syntax
ULONGLONG GetTickCount64();
Return value
The number of milliseconds.
Remarks
The resolution of the GetTickCount64 function is limited to the resolution of the system timer, which is typically in the range of 10 milliseconds to 16 milliseconds. The resolution of the GetTickCount64 function is not affected by adjustments made by the GetSystemTimeAdjustment function.
If you need a higher resolution timer, use a multimedia timer or a high-resolution timer.
To obtain the time the system has spent in the working state since it was started, use the QueryUnbiasedInterruptTime function.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows Vista [desktop apps | UWP apps] |
Minimum supported server | Windows Server 2008 [desktop apps | UWP apps] |
Target Platform | Windows |
Header | sysinfoapi.h (include Windows.h) |
Library | Kernel32.lib |
DLL | Kernel32.dll |