OMNI_CLOCK_GETRES_REALTIME
MACRO

OMNI_CLOCK_GETRES_REALTIME - Changes the behaviour of the clock_getres.

SYNOPSIS top

#define OMNI_CLOCK_GETRES_REALTIME

Some platforms do not have support for certain resolution timers when calling clock_getres this macro changes the underlying resolution used.

DESCRIPTION top

Some systems (like QNX) only take CLOCK_REALTIME for clock_getres, but will return correct values for clock_gettime with CLOCK_MONOTONIC, defining this macro will change the behaviour of what clock_getres calls.

Defining this macro will set it to CLOCK_REALTIME and with it undefined (default) the library will use CLOCK_MONOTONIC

CONSIDERATIONS top

No special considerations.

PLATFORM SPECIFIC top

This only affects non-Windows systems; defining this macro on Windows based platforms will have no effect on the library code.

NOTES top

None.