Immediately synchronizes the local time of day clock with an external source, such as the Windows time of day clock or the local Real-Time Clock hardware (on INtime Distributed RTOS nodes).
BOOLEAN SyncLocalRtClock( DWORD dwClockSource );
dwClockSource
DEFAULT_CLOCK_TYPE |
Synchronize with the default source for the node type. |
WINDOWS_CLOCK_TYPE |
Synchronize with the Windows clock source. |
LOCAL_CLOCK_TYPE |
Synchronize with the RTC hardware clock source. |
The normal case should be to make the call with the value DEFAULT_CLOCK_SOURCE
and allow the kernel to decide. WINDOWS_CLOCK_TYPE
is the default for INtime for Windows nodes (sharing a host with Windows) and synchronizes the INtime time of day counter with the Windows GetSystemTime call.
LOCAL_CLOCK_TYPE
is the default on a INtime Distributed RTOS node and synchronizes the INtime time of day clock with the local hardware (RTC) clock.
If LOCAL_CLOCK_TYPE
is specified on an INtime for Windows node then the call will fail.
TRUE
FALSE
E_CONTEXT
E_EXIST
E_PARAM
dwClockSource
parameter. Versions | Defined in | Include | Link to |
---|---|---|---|
INtime 4.0 | intime/rt/include/rtbase.h | rt.h | rt.lib |