Skip to main content
Skip table of contents

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.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.