1 out of 1 rated this helpful - Rate this topic

timeGetSystemTime function

Applies to: desktop apps only

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.

Syntax

MMRESULT timeGetSystemTime(
  LPMMTIME pmmt,
  UINT cbmmt
);

Parameters

pmmt

Pointer to an MMTIME structure.

cbmmt

Size, in bytes, of the MMTIME structure.

Return value

If successful, returns TIMERR_NOERROR. Otherwise, returns an error code.

Remarks

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

Requirements

Minimum supported client

Windows 2000 Professional

Minimum supported server

Windows 2000 Server

Header

Mmsystem.h (include Windows.h)

Library

Winmm.lib

DLL

Winmm.dll

See also

Multimedia Timers
Multimedia Timer Functions

 

 

Send comments about this topic to Microsoft

Build date: 2/3/2012

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ