[edit] timer_resolution

Syntax: timer_resolution interval
Default:
Context: main
Reference: timer_resolution


Example:

timer_resolution  100ms;

The directive allows to decrease number gettimeofday() syscalls. By default gettimeofday() is called after each return from kevent(), epoll, /dev/poll, select(), poll().

But if you need an exact time in logs when logging $upstream_response_time, or $msec variables, then you should use timer_resolution.



Module: CoreModule