]> git.ipfire.org Git - thirdparty/util-linux.git/blob - include/monotonic.h
include: add DragonFlyBSD GPT partition types
[thirdparty/util-linux.git] / include / monotonic.h
1 /*
2 * No copyright is claimed. This code is in the public domain; do with
3 * it what you wish.
4 */
5 #ifndef UTIL_LINUX_MONOTONIC_H
6 #define UTIL_LINUX_MONOTONIC_H
7
8 # ifdef CLOCK_MONOTONIC_RAW
9 # define UL_CLOCK_MONOTONIC CLOCK_MONOTONIC_RAW
10 # else
11 # define UL_CLOCK_MONOTONIC CLOCK_MONOTONIC
12 # endif
13
14 #include <sys/time.h>
15
16 #include "timeutils.h"
17
18 extern int get_boot_time(struct timeval *boot_time);
19
20 extern usec_t get_suspended_time(void);
21
22 extern int gettime_monotonic(struct timeval *tv);
23
24 #endif /* UTIL_LINUX_MONOTONIC_H */