summaryrefslogtreecommitdiffstats
path: root/include/monotonic.h
blob: aca8b1fe4d44b3f2e29cc15d373afdf044930c04 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#ifndef UTIL_LINUX_BOOTTIME_H
#define UTIL_LINUX_BOOTTIME_H

/*
 * Uses clock_gettime() that requires $CLOCKGETTIME_LIBS
 */
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 */