WaitForNextInterval [LJM User's Guide]
Waits (blocks/sleeps) until the next interval occurs. If intervals are skipped, this function still waits until the next complete interval.
Syntax
LJM_ERROR_RETURN LJM_WaitForNextInterval(
int IntervalHandle,
int * SkippedIntervals)
Parameters
IntervalHandle [in]
The user-generated interval identifier. This can be anything.
SkippedIntervals [out]
The number of skipped intervals that occurred since the last time this function was called.
Returns
LJM errorcodes or 0
for no error.
Returns LJME_INVALID_INTERVAL_HANDLE
if IntervalHandle
was not set up using LJM_StartInterval.
Example
See LJM_StartInterval for an example.