timeGetSystemTime

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      
);
 

Parameters

pmmt
Address of an MMTIME structure.
cbmmt
Size, in bytes, of the MMTIME structure.

Return Values

Returns TIMERR_NOERROR. The system time is returned in the ms member of the MMTIME structure.

QuickInfo

  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.

See Also

Multimedia Timers Overview, Multimedia Timer Functions, timeGetTime, MMTIME