summaryrefslogtreecommitdiff
path: root/src/core/timer.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2017-06-22 20:59:48 +0200
committerLennart Poettering <lennart@poettering.net>2017-06-22 20:59:48 +0200
commit79fc8b9623354a98ca81b4d35e576e9c9e3bf687 (patch)
tree527754babf0108e68968bffdfb5b9d346ff3486e /src/core/timer.h
parent1007ec60e664da03b7aea4803c643d991fcf6530 (diff)
downloadsystemd-79fc8b9623354a98ca81b4d35e576e9c9e3bf687.tar.gz
timer: convert property_get_next_elapse_monotonic() to use usec_shift_clock()
Let's use the generic clock shifting logic here.
Diffstat (limited to 'src/core/timer.h')
-rw-r--r--src/core/timer.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/timer.h b/src/core/timer.h
index 9c4b64f898..546c60d750 100644
--- a/src/core/timer.h
+++ b/src/core/timer.h
@@ -78,6 +78,8 @@ struct Timer {
char *stamp_path;
};
+#define TIMER_MONOTONIC_CLOCK(t) ((t)->wake_system && clock_boottime_supported() ? CLOCK_BOOTTIME_ALARM : CLOCK_MONOTONIC)
+
void timer_free_values(Timer *t);
extern const UnitVTable timer_vtable;