The timeGetSystemTime function retrieves the system time, in milliseconds. The system time is the time elapsed since Windows was started. This function works very much like the timeGetTime function. See timeGetTime for details of these functions' operation.
MMRESULT timeGetSystemTime(
LPMMTIME pmmt,
UINT cbmmt
);
Returns TIMERR_NOERROR. The system time is returned in the ms member of the MMTIME structure.
Windows NT: Requires version 3.1 or later.
Windows: Requires Windows 95 or later.
Windows CE: Unsupported.
Header: Declared in mmsystem.h.
Import Library: Use winmm.lib.
Multimedia Timers Overview, Multimedia Timer Functions, timeGetTime, MMTIME