WaitTime

Waits for a given amount of time to pass.

Synopsis

Err WaitTime(Item ioreq, uint32 seconds, uint32 micros);

Description

Puts the current context to sleep for a specific amount of time.

Arguments

ioreq
An active timer device I/O request, as obtained from CreateTimerIOReq().
seconds
The number of seconds to wait for.
micros
The number of microseconds to wait for.

Return Value

Returns >=0 if successful, or a negative error code if it fails.

Implementation

Convenience call implemented in clib.lib V24.

Associated Files

time.h, clib.lib

See Also

CreateTimerIOReq(), DeleteTimerIOReq(), WaitUntil()