RtGetClockTime
RtGetClockTime obtains the current value of the specified clock.
Syntax
BOOL RtGetClockTime(
CLOCK Clock,
PLARGE_INTEGER pTime
);
Parameters
Clock
A clock identifier.
pTime
A pointer to a LARGE_INTEGER structure in which to store the results.
Return Value
If the function completes successfully, it returns TRUE. If invalid parameters are specified, it returns FALSE.
Remarks
RtGetClockTime obtains the value of the specified clock. The time is specified in 100ns units. See the table in the RtCreateTimer Comments section for a list of legal clock values.
When eRTOS is configured to use more than one processor on a multiprocessor computer, the processor on which RtGetClockTime is called should not matter. For this reason, if you want to trace the execution sequence of two events on different processors, Use QueryPerformanceCounter, instead of RtGetClockTime.
Requirements
Minimum supported version | Header | Library |
---|---|---|
eRTOS 1.0 SDK |
Rtapi.h | rtkrnl.lib |
See Also: