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_TIMER
filter ifkqueue
is used; -
timer_create()
ifeventport
is used; -
setitimer()
otherwise.
Please login to continue.