blob: bbebfe0b97ea208b898e87f8db8221265d90bfb0 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#ifndef UTIL_LINUX_BOOTTIME_H
#define UTIL_LINUX_BOOTTIME_H
/*
* Uses clock_gettime() that requires $CLOCKGETTIME_LIBS
*/
#include <signal.h>
#include <sys/time.h>
extern int get_boot_time(struct timeval *boot_time);
extern int gettime_monotonic(struct timeval *tv);
extern int setup_timer(timer_t * t_id, struct itimerval *timeout,
void (*timeout_handler)(int, siginfo_t *, void *));
extern void cancel_timer(timer_t * t_id);
#endif /* UTIL_LINUX_BOOTTIME_H */
|