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);
|
|
|
|
|
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 */
|