diff options
| author | 2015-03-11 04:05:18 +0000 | |
|---|---|---|
| committer | 2015-03-11 04:05:18 +0000 | |
| commit | e600375965f48191d455ea78a807b49e1ed0f47c (patch) | |
| tree | e2ec10070bf79eed95020f2441901a2e520349c6 /lib/libsqlite3/src/expr.c | |
| parent | port src/sbin/ping/ping.c r1.115. (diff) | |
| download | wireguard-openbsd-e600375965f48191d455ea78a807b49e1ed0f47c.tar.xz wireguard-openbsd-e600375965f48191d455ea78a807b49e1ed0f47c.zip | |
port the idea of using clock_gettime(CLOCK_MONOTONIC) for measuring
intervals from src/sbin/ping/ping.c r1.115.
> use clock_gettime(CLOCK_MONOTONIC) to get timestamps to measure the
> interval between sending a ping and getting a reply for it.
>
> this makes it resistant against local wall clock changes, which can
> skew the intervals reported or make them go negative.
this version puts clock_getting in a local gettime() function that
converts to a struct timeval that all the previous callers of
gettimeofday expect to get.
requested by deraadt@ florian@
Diffstat (limited to 'lib/libsqlite3/src/expr.c')
0 files changed, 0 insertions, 0 deletions
