GetUSecTime

Obtains the current time in microseconds.

Synopsis

int32 GetUSecTime (Item ioreq, uint32 *seconds, uint32 *useconds)

Description

Obtains the current value of the system microsecond timer and stores the results at *seconds and *useconds. Either pointer can be NULL if you don't need that part of the result.

Arguments

ioreq
IOReq item obtained from GetTimerIOReq(), or zero to have an IOReq dynamically created/deleted during the call.
seconds
Pointer to a variable into which the high-order (full seconds) portion of the time is stored
useconds
Pointer to a variable into which the low-order (microseconds) portion of the time is stored.

Return Value

The high-order portion of the time (full seconds, a positive value), or a negative error code.

Implementation

Library call implemented in lib3do.lib.

Associated Files

lib3do.lib, timerutils.h

See Also

GetTimerIOReq