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 );
Pointer to an MMTIME structure.
Size, in bytes, of the MMTIME structure.
Returns TIMERR_NOERROR. The system time is returned in the ms member of the MMTIME structure.
** Windows NT/2000/XP:** Included in Windows NT 3.1 and later.
** Windows 95/98/Me:** Included in Windows 95 and later.
** Header:** Declared in Mmsystem.h; include Windows.h.
** Library:** Use Winmm.lib.