summaryrefslogtreecommitdiff
path: root/src/shared/time-util.h
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2014-07-24 18:36:37 +0200
committerTom Gundersen <teg@jklm.no>2014-07-24 19:02:58 +0200
commit77ff2de999b7ea6b1b4a3a218fbd9d62bb07cd54 (patch)
tree11d64d04929f55ceacc6fbbb7321cc6ff5801d69 /src/shared/time-util.h
parenta854881616afbe4c4f55396d3fc2f922bbbe716b (diff)
time-util: add clock_boottime_or_monotonic
CLOCK_BOOTTIME is not supported by timerfd on older kernels, so for the time beeing, use this helper instead which will fallback to CLOCK_MONOTONIC if CLOCK_BOOTTIME is not supported.
Diffstat (limited to 'src/shared/time-util.h')
-rw-r--r--src/shared/time-util.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/shared/time-util.h b/src/shared/time-util.h
index 792cd27489..69a48c686b 100644
--- a/src/shared/time-util.h
+++ b/src/shared/time-util.h
@@ -98,3 +98,5 @@ bool ntp_synced(void);
int get_timezones(char ***l);
bool timezone_is_valid(const char *name);
+
+clockid_t clock_boottime_or_monotonic(void);