diff options
author | Jesse Gross <jesse@nicira.com> | 2010-06-08 17:18:48 -0700 |
---|---|---|
committer | Jesse Gross <jesse@nicira.com> | 2010-06-08 18:01:25 -0700 |
commit | c73814a3e6cbdf8c4083ef1d510377e41cb82f6a (patch) | |
tree | c6f3e8196f5156b2643900ec3763cabeb1d3c7bb /lib/dynamic-string.c | |
parent | c6f196a050aeae603f5d68ca065a72da9a8ec894 (diff) | |
download | openvswitch-c73814a3e6cbdf8c4083ef1d510377e41cb82f6a.tar.gz |
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
Diffstat (limited to 'lib/dynamic-string.c')
-rw-r--r-- | lib/dynamic-string.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/dynamic-string.c b/lib/dynamic-string.c index 79a7d8ee4..180a4301c 100644 --- a/lib/dynamic-string.c +++ b/lib/dynamic-string.c @@ -179,7 +179,7 @@ void ds_put_strftime(struct ds *ds, const char *template, const struct tm *tm) { if (!tm) { - time_t now = time_now(); + time_t now = time_wall(); tm = localtime(&now); } for (;;) { |