timeval: Use monotonic time where appropriate.
authorJesse Gross <jesse@nicira.com>
Wed, 9 Jun 2010 00:18:48 +0000 (17:18 -0700)
committerJesse Gross <jesse@nicira.com>
Wed, 9 Jun 2010 01:01:25 +0000 (18:01 -0700)
commitc73814a3e6cbdf8c4083ef1d510377e41cb82f6a
treec6f3e8196f5156b2643900ec3763cabeb1d3c7bb
parentc6f196a050aeae603f5d68ca065a72da9a8ec894
timeval: Use monotonic time where appropriate.

Most of the timekeeping needs of OVS are simply to measure intervals,
which means that it is sensitive to changes in the clock.  This commit
replaces the existing clocks with monotonic timers.  An additional set
of wall clock timers are added and used in locations that need absolute
time.

Bug #1858
13 files changed:
configure.ac
datapath/flow.c
include/openvswitch/datapath-protocol.h
lib/dpif-netdev.c
lib/dynamic-string.c
lib/netlink.c
lib/timeval.c
lib/timeval.h
lib/vlog.c
ofproto/netflow.c
ofproto/ofproto-sflow.c
ovsdb/file.c
tests/test-timeval.c