19 lines771 bytes
Newer
Older
-
+
commited
{line.log.rev}
on
8 months ago
22
1
#ifndef _TIMESPEC_UTILS_H
2
#define _TIMESPEC_UTILS_H
7 months ago
3
#include <stdint.h>
8 months ago
22
4
5
struct timespec;
6
7 months ago
7
static inline struct timespec timespec_from_int64_ns(int64_t time);
8
static inline int64_t int64_ns_from_timespec(struct timespec time);
8 months ago
22
9
static inline bool timespec_eq(struct timespec a, struct timespec b);
10
static inline bool timespec_ne(struct timespec a, struct timespec b);
11
static inline bool timespec_lt(struct timespec a, struct timespec b);
12
static inline bool timespec_lte(struct timespec a, struct timespec b);
13
static inline bool timespec_gt(struct timespec a, struct timespec b);
14
static inline bool timespec_gte(struct timespec a, struct timespec b);
15
static inline struct timespec timespec_sub(struct timespec a, struct timespec b);
16
17
#include "timespec_utils.def.h"
18
#endif
19