]> git.kaiwu.me - nginx.git/commit
Core: ngx_current_msec now uses monotonic time if available.
authorMaxim Dounin <mdounin@mdounin.ru>
Thu, 1 Mar 2018 17:25:50 +0000 (20:25 +0300)
committerMaxim Dounin <mdounin@mdounin.ru>
Thu, 1 Mar 2018 17:25:50 +0000 (20:25 +0300)
commitc7e8a6f2123c653b63ed8013a805eddff502b9ee
tree1b4dd1cd6c27935fbadb2b4a00a514e0a27bdce0
parent6e30556127157ddf04e925480ce1e0ef9df2ca0a
Core: ngx_current_msec now uses monotonic time if available.

When clock_gettime(CLOCK_MONOTONIC) (or faster variants, _FAST on FreeBSD,
and _COARSE on Linux) is available, we now use it for ngx_current_msec.
This should improve handling of timers if system time changes (ticket #189).
auto/unix
src/core/ngx_times.c