Function Reference


_Date_Time_GetTickCount

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

#include <Date.au3>
_Date_Time_GetTickCount ( )

Return Value

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

Remarks

The elapsed time is stored as a DWORD value. The time will wrap around to zero if Windows is run continuously for 49.7 days.

Example

#include "Extras\HelpFileInternals.au3"

#include <Date.au3>
#include <GUIConstantsEx.au3>
#include <WindowsStylesConstants.au3>

Example()

Func Example()
    ; Create GUI
    GUICreate("Time", 400, 300)
    _MemoCreate(2, 2, 396, 296, $WS_VSCROLL)
    GUISetState(@SW_SHOW)

    ; Get tick count
    _MemoWrite("Tick count .: " & _Date_Time_GetTickCount())

    ; Loop until the user exits.
    Do
    Until GUIGetMsg() = $GUI_EVENT_CLOSE
EndFunc   ;==>Example