# Function Reference

# _WinAPI_GetTickCount

Retrieves the number of milliseconds that have elapsed since the system was started

#include <WinAPISys.au3>
_WinAPI_GetTickCount ( )

## Return Value

Returns the number of milliseconds that have elapsed since the system was started.

## Remarks

The time will wrap around to zero if the system is run continuously for 49.7 days. You should check for an
overflow condition when comparing times. To obtain the time elapsed since the computer was started, retrieve the
System Up Time counter in the performance data in the registry key HKEY_PERFORMANCE_DATA.

## See Also

Search GetTickCount in MSDN Library.

## Example

    #include <WinAPIConv.au3>
    #include <WinAPISys.au3>

    ConsoleWrite(_WinAPI_StrFromTimeInterval(_WinAPI_GetTickCount()) & @CRLF)