Share via


CurMSec

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

Windows Mobile Not SupportedWindows Embedded CE Supported

8/27/2008

This global variable indicates the number of milliseconds since boot.

Syntax

extern volatile UINT32 CurMSec;

Parameters

None.

Return Value

None.

Remarks

Your OEM adaptation layer (OAL) implementation must update this global variable.

CurMSec requires updating by the OEM timer ISR routine for all CPUs except MIPS-based platforms.

CurMSec is also updated in OEMIdle if variable ticks are used for conserving power.

CurMSec is associated with GetTickCount.

Note

On MIPS-based platforms, the CurMSec global variable must not be defined by the OAL. The OAL should use AddrCurMSec as the address of the variable, which should be updated by the timer ISR routine to contain the number of milliseconds since boot time.

OEMs can reference the pre-defined macro CurMSec by including the header file nkexports.h. Alternatively, OEMs can directly access the dwCurMSec member of the NKGLOBAL structure, g_pNKGlobal.

Requirements

Header Developer Implemented
Library Nkmain.lib
Windows Embedded CE Windows CE 2.10 and later

See Also

Reference

OEMIdle

Other Resources

GetTickCount