Compartilhar via


Monotonically Increasing Clock (Windows Embedded CE 6.0)

1/6/2010

The monotonically increasing clock provides a time source that moves at the speed of the real-time clock (RTC), and is not affected by system time changes or local time changes made with the SetSystemTime or the SetLocalTime functions. When the time changes, the OS calculates the time offset, and saves it in the registry. This offset is applied whenever the monotonic time is queried. Applications can retrieve the monotonically increasing time, and do not need to be concerned with a change in time due to calls to SetSystemTime or SetLocalTime. When SetSystemTime or SetLocalTime is called, the offsets are recalculated, so the time change is saved internally by the kernel and does not persist across reboots.

Public Interface

The following table describes the functions that can be used with the monotonically increasing clock.

Function Description

CeGetRawTime

Reads the monotonically increasing time by reading the hardware clock and applies the calculated offset.

CeGetRawTimeOffset

Reads the current raw time offset.

See Also

Other Resources

Additional Kernel Functionality
Kernel Migration