GetTSecTime

Obtains the current time in tenths of a second.

Synopsis

int32 GetTSecTime (Item ioreq)

Description

Obtains the current value of the system microsecond timer, converts the seconds and microseconds into a single tenths-of-a-second value, and returns the converted value.

The return value will overflow an int32 representation after the machine has been powered on for about 7 years. Chances are good that this is safe even in a cable TV or other long-running environment.

Arguments

ioreq
IOReq item obtained from GetTimerIOReq(), or zero to have an IOReq dynamically created/deleted during the call.

Return Value

Positive number of tenths-of-a-second or a negative error code.

Implementation

Library call implemented in lib3do.lib.

Associated Files

lib3do.lib, timerutils.h

See Also

GetTimerIOReq