RtSetClockTime

RtSetClockTime sets the current value of the specified clock.

Syntax

Copy
BOOL RtSetClockTime(
    [in]    CLOCK Clock,
    [in]    PLARGE_INTEGER pTime
);

Parameters

[in] Clock

A clock identifier.

[in] pTime

A pointer to a LARGE_INTEGER structure specifying the new value for Clock.

Return Value

If the function succeeds, it returns TRUE. If invalid parameters are specified, it returns FALSE.

Remarks

RtSetClockTime sets the value of the specified clock. The clock is specified in 100 ns units. See the table in the RtCreateTimer section for a list of legal clock values.

Requirements

Minimum supported version Header Library

wRTOS 1.0 SDK

RtApi.h

RtApi.lib (Windows), Startup.lib (RTSS)

See Also: