HZ_TO_USEC

Converts hertz to microseconds.

Synopsis

int32 HZ_TO_USEC (value)

Description

This macro converts a value expressed in Hertz (cycles or ticks per second) to the equivalent number of microseconds for each tick. True floating point constant values are legal, for example HZ_TO_USEC(2.5). The compiler will resolve the constant at compile time without needing runtime floating point support. The macro is usable in expression context and only evaluates its argument once.

Arguments

value
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