summaryrefslogtreecommitdiff
path: root/lib/timeval.c
diff options
context:
space:
mode:
authorIlya Maximets <i.maximets@samsung.com>2017-08-28 10:08:25 +0300
committerBen Pfaff <blp@ovn.org>2017-10-24 20:55:50 -0700
commit89bbc6a9cdb3dc9990e1259be48d5eb06f4316f9 (patch)
treefa6f14bc63e6cb78a2f1b4f8f10997c544e53924 /lib/timeval.c
parent29a083ee505f8a8fa0d3b0350b3f3a8437c17260 (diff)
downloadopenvswitch-89bbc6a9cdb3dc9990e1259be48d5eb06f4316f9.tar.gz
timeval: Fix misleading function descriptions.
TIME_UPDATE_INTERVAL was removed long time ago. Now each call leads to time update via syscall and it's granularity is system dependent. Fixes: 31ef9f5178de ("timeval: Remove CACHE_TIME scheme.") Signed-off-by: Ilya Maximets <i.maximets@samsung.com> Signed-off-by: Ben Pfaff <blp@ovn.org>
Diffstat (limited to 'lib/timeval.c')
-rw-r--r--lib/timeval.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/lib/timeval.c b/lib/timeval.c
index dd63f0322..2c7f43a41 100644
--- a/lib/timeval.c
+++ b/lib/timeval.c
@@ -171,16 +171,14 @@ time_timespec__(struct clock *c, struct timespec *ts)
}
}
-/* Stores a monotonic timer, accurate within TIME_UPDATE_INTERVAL ms, into
- * '*ts'. */
+/* Stores a monotonic timer into '*ts'. */
void
time_timespec(struct timespec *ts)
{
time_timespec__(&monotonic_clock, ts);
}
-/* Stores the current time, accurate within TIME_UPDATE_INTERVAL ms, into
- * '*ts'. */
+/* Stores the current time into '*ts'. */
void
time_wall_timespec(struct timespec *ts)
{
@@ -219,14 +217,14 @@ time_msec__(struct clock *c)
return timespec_to_msec(&ts);
}
-/* Returns a monotonic timer, in ms (within TIME_UPDATE_INTERVAL ms). */
+/* Returns a monotonic timer, in ms. */
long long int
time_msec(void)
{
return time_msec__(&monotonic_clock);
}
-/* Returns the current time, in ms (within TIME_UPDATE_INTERVAL ms). */
+/* Returns the current time, in ms. */
long long int
time_wall_msec(void)
{