OMNI_CHRONO_AUTO_INIT_TICK
MACRO

OMNI_CHRONO_AUTO_INIT_TICK - If defined, omni::chrono::monotonic::tick will initialize on first call.

SYNOPSIS top

#define OMNI_CHRONO_AUTO_INIT_TICK

When omni::chrono::monotonic::tick is first called, the underlying structures to the performance timers for the system clock are initialized.

DESCRIPTION top

When a call is made to omni::chrono::monotonic::tick to retrieve the current clock, the underlying structures to the performance timers for the system clock need to be initialized so as to be returned for the current clock time.

If this macro is defined, the omni::chrono::monotonic::initialize function will be called automatically so user code need not call it.

CONSIDERATIONS top

This macro is defined by default within the library. If you wish to avoid the function call each time a call to omni::chrono::monotonic::tick is made, you can define OMNI_NO_CHRONO_AUTO_INIT_TICK and call omni::chrono::monotonic::initialize in your own initialization code.

PLATFORM SPECIFIC top

No platform specific notes.

NOTES top

None.