From 700031ade7cbcdcecf1205f98f50ed0da57c7493 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Tue, 18 Nov 2014 14:35:21 +0100 Subject: misc: use monotonic time rater than gettimeofday Based on patch Alexander Samilovskih Signed-off-by: Karel Zak --- include/timeutils.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/timeutils.h') 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 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 */ -- cgit v1.2.3-55-g7522