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

Gets the system clock's minimum timer period, in 100ns units.

BOOLEAN RtGetClockTimerPeriod(
    CLOCK Clock,
    PLARGE_INTEGER pTime
);

Parameters

Clock
Ignored.
pTime
Pointer to a LARGE_INTEGER that receives the current time.

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

The actual number of INtime ticks the thread waits is calculated as follows:

interval = (parameter + ktick_in_100ns - 1) / ktick_in_100ns;

where: interval is the actual interval slept, ktick_in_100ns is the INtime low-level clock period expressed as a multiple of 100ns, and parameter is the value of the parameter passed.

Remarks

This function is the same as RtGetClockResolution.

For higher resolution timers, see QueryPerformanceCounter and QueryPerformanceFrequency.

Return Values

TRUE
Success.
FALSE
Failure.

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