summaryrefslogtreecommitdiff
path: root/libmultipath/time-util.h
blob: b23d328a35f14dffdb7bc9774affbc6b8bedf041 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#ifndef _TIME_UTIL_H_
#define _TIME_UTIL_H_

#include <pthread.h>

struct timespec;

void get_monotonic_time(struct timespec *res);
void pthread_cond_init_mono(pthread_cond_t *cond);
void normalize_timespec(struct timespec *ts);
void timespecsub(const struct timespec *a, const struct timespec *b,
		 struct timespec *res);

#endif /* _TIME_UTIL_H_ */