Share via


timeGetSystemTime

Other versions of this page are also available for the following:

Windows Mobile Not SupportedWindows Embedded CE Supported

8/28/2008

This function retrieves the system time, in milliseconds. The system time is the time elapsed since the system started.

Syntax

MMRESULT timeGetSystemTime(
  LPMMTIME pmmt,
  UINT cbmmt
);

Parameters

  • pmmt
    [in] Pointer to an MMTIME structure.
  • cbmmt
    [in] Size, in bytes, of the MMTIME structure.

Return Value

Returns TIMERR_NOERROR.

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

Remarks

This function operates similarly to the timeGetTime function.

Requirements

Header mmsystem.h
Library Mmtimer.lib
Windows Embedded CE Windows CE .NET 4.2 and later

See Also

Reference

MMTIME
timeGetTime

Other Resources

Time Reference