2020-01-13 03:39:52 -06:00
|
|
|
/*
|
|
|
|
* No copyright is claimed. This code is in the public domain; do with
|
|
|
|
* it what you wish.
|
|
|
|
*/
|
2015-03-06 06:17:20 -06:00
|
|
|
#ifndef UTIL_LINUX_MONOTONIC_H
|
|
|
|
#define UTIL_LINUX_MONOTONIC_H
|
2014-05-06 09:38:53 -05:00
|
|
|
|
2019-01-07 15:31:34 -06:00
|
|
|
# ifdef CLOCK_MONOTONIC_RAW
|
|
|
|
# define UL_CLOCK_MONOTONIC CLOCK_MONOTONIC_RAW
|
|
|
|
# else
|
|
|
|
# define UL_CLOCK_MONOTONIC CLOCK_MONOTONIC
|
|
|
|
# endif
|
|
|
|
|
2015-03-05 06:32:53 -06:00
|
|
|
#include <sys/time.h>
|
|
|
|
|
2014-05-06 09:38:53 -05:00
|
|
|
extern int get_boot_time(struct timeval *boot_time);
|
|
|
|
|
2020-06-01 14:21:34 -05:00
|
|
|
extern time_t get_suspended_time(void);
|
|
|
|
|
2014-11-19 04:54:47 -06:00
|
|
|
extern int gettime_monotonic(struct timeval *tv);
|
|
|
|
|
2015-03-06 06:17:20 -06:00
|
|
|
#endif /* UTIL_LINUX_MONOTONIC_H */
|