SleepUSec

Sleeps for a number of microseconds.

Synopsis

Err SleepUSec (Item ioreq, uint32 seconds, uint32 useconds)

Description

Puts the calling task in a wait state for the specified period of time. The function does not return until the time has passed.

Arguments

ioreq
An IOReq item obtained from GetTimerIOReq(), or zero to have an IOReq dynamically created/deleted during the call.
seconds
Number of seconds to sleep.
useconds
Number of microseconds to sleep.

Return Value

Zero for success, or a negative error code.

Implementation

Library call implemented in lib3do.lib.

Associated Files

lib3do.lib, timerutils.h

See Also

GetTimerIOReq