INtime SDK Help
RtSetClockTime (iwin32)
INtime SDK v6 > About INtime > Alternate APIs > iwin32 API > iwin32 API > RtSetClockTime (iwin32)

Sets the current value of the system clock.

BOOLEAN RtSetClockTime(
    CLOCK Clock,
    PLARGE_INTEGER pTime
);

Parameters

Clock
Ignored.
pTime
Pointer to a LARGE_INTEGER structure that contains the new clock value in 100ns units.

Although time is in 100ns units, the implementation uses the INtime system timer tick (default 500 us).

Remarks

If a timer is running while calling this function, it may report a wrong 'remaining' value. A running timer that had an absolute time is not affected.

Return Values

TRUE
Success.
FALSE
Failure. For extended error information, see GetLastError

Requirements

Versions Defined in Include Link to
INtime 3.0 intime/rt/include/iwin32.h iwin32.h iwin32.lib

Note

This function operates in the real-time portion of your application.

See Also