次の方法で共有


OEMGetTickCount (Compact 2013)

10/16/2014

This function retrieves the number of milliseconds that have elapsed since Windows Embedded Compact was started.

Syntax

DWORD OEMGetTickCount(void);

Parameters

None.

Return Value

The number of milliseconds that have elapsed since the system was started, excluding any time that the system was suspended.

Remarks

This function is called from the OAL.

For debug configurations, 180 seconds is subtracted from the number of milliseconds since the system was started. This change in the return value allows you to easily test for correct overflow handling in your code that uses OEMGetTickCount.

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 wraps around to 0 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 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

Header

kernel.h

Library

OEMMain.lib or OEMMain_StaticKITL.lib

See Also

Reference

Required OAL Functions
CurMSec
OEMIdle
OEMUpdateReschedTime