summaryrefslogtreecommitdiffstats
path: root/include/timeutils.h
diff options
context:
space:
mode:
authorKarel Zak2014-11-18 14:35:21 +0100
committerKarel Zak2014-11-18 14:35:21 +0100
commit700031ade7cbcdcecf1205f98f50ed0da57c7493 (patch)
tree4ff850a1015129cb448577dd1c4d9ca461cbb041 /include/timeutils.h
parentuuidd: Fixed a typo in daemon logging message (diff)
downloadkernel-qcow2-util-linux-700031ade7cbcdcecf1205f98f50ed0da57c7493.tar.gz
kernel-qcow2-util-linux-700031ade7cbcdcecf1205f98f50ed0da57c7493.tar.xz
kernel-qcow2-util-linux-700031ade7cbcdcecf1205f98f50ed0da57c7493.zip
misc: use monotonic time rater than gettimeofday
Based on patch Alexander Samilovskih <alexsamilovskih@gmail.com> Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'include/timeutils.h')
-rw-r--r--include/timeutils.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/timeutils.h b/include/timeutils.h
index bcae6137c..97f054489 100644
--- a/include/timeutils.h
+++ b/include/timeutils.h
@@ -3,6 +3,7 @@
copied to util-linux at August 2013.
Copyright 2010 Lennart Poettering
+ Copyright (C) 2014 Karel Zak <kzak@redhat.com>
systemd is free software; you can redistribute it and/or modify it
under the terms of the GNU Lesser General Public License as published by
@@ -52,4 +53,6 @@ typedef uint64_t nsec_t;
int parse_timestamp(const char *t, usec_t *usec);
+int gettime_monotonic(struct timeval *tv);
+
#endif /* UTIL_LINUX_TIME_UTIL_H */