SEC_TO_USE

Converts seconds to microseconds.

Synopsis

int32 SEC_TO_USEC (value)

Description

This macro converts a number of seconds to the equivalent number of microseconds. True floating point constant values are legal, for example SEC_TO_USEC(2.5). The compiler will resolve the constant at compile time without needing runtime floating point support. Values up to 2147 seconds (about 35 minutes) can be expressed without overflowing an int32. The macro is usable in expression context and only evaluates its argument once.

Arguments

value
An integer constant or variable, or a floating point constant to be converted to microseconds.

Return Value

The number of microseconds.

Implementation

Macro

Associated Files

lib3do.lib, timerutils.h