Share via


SC_GetTickCount

This function is called from the OAL and retrieves the number of milliseconds that have elapsed since Windows CE was started.

DWORD SC_GetTickCount(void);

Parameters

None.

Return Values

The number of milliseconds that have elapsed since the system was started indicates success.

Remarks

The resolution of the system timer is based on the OEM's setting. Check with the OEM for details.

The elapsed time is stored as a DWORD value. Therefore, the time will wrap around to zero if the system is run continuously for 49.7 days.

Note   The return value must be in sync with CurMSec. The return value must be either CurMSec or CurMSec + 1 if the timer tick is shifted by more than 1 ms due to a timer reprogram in OEMIdle.

An OEM should always return CurMSec if OEMIdle never reprograms a timer.

Requirements

OS Versions: Windows CE .NET 4.0 and later.
Header: Kernel.h.
Link Library: Nk.lib.

See Also

GetTickCount | CurMSec | OEMIdle

Last updated on Wednesday, April 13, 2005

© 2005 Microsoft Corporation. All rights reserved.