#ifndef _TIMESPEC_UTILS_H
#define _TIMESPEC_UTILS_H
#include <stdint.h>

struct timespec;

static inline struct timespec timespec_from_int64_ns(int64_t time);
static inline int64_t int64_ns_from_timespec(struct timespec time);
static inline bool timespec_eq(struct timespec a, struct timespec b);
static inline bool timespec_ne(struct timespec a, struct timespec b);
static inline bool timespec_lt(struct timespec a, struct timespec b);
static inline bool timespec_lte(struct timespec a, struct timespec b);
static inline bool timespec_gt(struct timespec a, struct timespec b);
static inline bool timespec_gte(struct timespec a, struct timespec b);
static inline struct timespec timespec_sub(struct timespec a, struct timespec b);

#include "timespec_utils.def.h"
#endif
