| Syntax: | timer_resolution |
|---|---|
| Default: | — |
| Context: | main |
Reduces timer resolution in worker processes, thus reducing the number of gettimeofday() system calls made. By default, gettimeofday() is called each time a kernel event is received. With reduced resolution, gettimeofday() is only called once per specified interval.
Example:
timer_resolution 100ms;
Internal implementation of the interval depends on the method used:
- the
EVFILT_TIMERfilter ifkqueueis used; -
timer_create()ifeventportis used; -
setitimer()otherwise.
Please login to continue.