8 months ago |
22 |
1 |
#ifndef _TIMESPEC_UTILS_H | ||
2 |
#define _TIMESPEC_UTILS_H | ||||
3 |
|||||
4 |
struct timespec; | ||||
5 |
|||||
6 |
static inline bool timespec_eq(struct timespec a, struct timespec b); | ||||
7 |
static inline bool timespec_ne(struct timespec a, struct timespec b); | ||||
8 |
static inline bool timespec_lt(struct timespec a, struct timespec b); | ||||
9 |
static inline bool timespec_lte(struct timespec a, struct timespec b); | ||||
10 |
static inline bool timespec_gt(struct timespec a, struct timespec b); | ||||
11 |
static inline bool timespec_gte(struct timespec a, struct timespec b); | ||||
12 |
static inline struct timespec timespec_sub(struct timespec a, struct timespec b); | ||||
13 |
|||||
14 |
#include "timespec_utils.def.h" | ||||
15 |
#endif | ||||
16 |