X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Futil.h;h=ae00ff50c43c901a41af89d91ad000066cfe46ba;hb=a7d3cc26f9694053712458615006ea79cd7a7cb4;hp=7ea163f2141e4c9ddda2b688a2308635fd744e5a;hpb=97c4a07df982ee967705022feaba9be33947abf0;p=elogind.git diff --git a/src/util.h b/src/util.h index 7ea163f21..ae00ff50c 100644 --- a/src/util.h +++ b/src/util.h @@ -73,6 +73,8 @@ usec_t now(clockid_t clock); dual_timestamp* dual_timestamp_get(dual_timestamp *ts); +#define dual_timestamp_is_set(ts) ((ts)->realtime > 0) + usec_t timespec_load(const struct timespec *ts); struct timespec *timespec_store(struct timespec *ts, usec_t u);