MSEC_TO_USEC

Converts milliseconds to microseconds.

Synopsis

int32 MSEC_TO_USEC (value)

Description

This macro converts a number of milliseconds to the equivalent number of microseconds. True floating point constant values are legal, for example MSEC_TO_USEC(2730.52). The compiler resolves the constant at compile time without needing runtime floating point support. Values up to 2,147,000 milliseconds (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