summaryrefslogtreecommitdiffstats
path: root/include/monotonic.h
blob: d5ff7c8e582e6ae3439b8ab2580a500777cfd9bb (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)(void));
extern void cancel_timer(timer_t * t_id);

#endif /* UTIL_LINUX_BOOTTIME_H */