Site Tools


documentation:development:opera:pf25:ppgfldr:smmfldr:ldofldr:01ldo100

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

documentation/development/opera/pf25/ppgfldr/smmfldr/ldofldr/01ldo100.txt · Last modified: 2022/10/10 16:53 by 127.0.0.1