Partager via


Timer Reference Kernel Interface (Compact 2013)

10/16/2014

The following table shows the programming elements exported to the kernel from the timer library.

Programming Elements

Description

CurMSec

This global variable indicates the number of milliseconds since boot.

OALTimerIntrHandler

This function implements the timer interrupt handler.

OEMIdle

This function is called by the kernel to place the CPU in the idle state when there are no threads ready to run.

OEMUpdateReschedTime

Optional. This function points to the function that reprograms the system timer.

OEMQueryPerformanceCounter

Optional. This function points to the OEM implementation of the OEMQueryPerformanceCounter function. It should be set for platforms that provide timer functions with higher granularity than GetTickCount.

OEMQueryPerformanceFrequency

Optional. This function points to the OEM implementation of the OEMQueryPerformanceFrequency function. It should be set for platforms that provide timer functions with higher granularity than GetTickCount.

OEMGetTickCount

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

See Also

Reference

Timer Reference