set the system tick size
#include <time.h> long qnx_ticksize( long nsec, int flags );
The qnx_ticksize() function sets the system tick size. This tick is the base granularity for the time functions.
The nsec argument specifies the ticksize in nanoseconds. The flags argument controls how the nsec value is used. At least the following exclusive flag values are defined:
This flag allows the timer functions to be an even multiple of the hardware timer.
The previous ticksize (in nanoseconds) upon success. If an error occurs, -1 is returned and errno is set to indicate the error.
QNX
Safety: | |
---|---|
Interrupt handler | No |
Signal handler | Yes, but modifies errno |
Thread | Yes |
Your application must run as root to call this function.