diff options
| author | Joel Klinghed <the_jk@spawned.biz> | 2021-01-27 22:06:49 +0100 |
|---|---|---|
| committer | Joel Klinghed <the_jk@spawned.biz> | 2021-01-27 22:06:49 +0100 |
| commit | 06950aab233de6a2f47293d59575bb42f6131660 (patch) | |
| tree | 62f6eed4a6d35414f656d22b9ac7420849018a11 /src/timespec.h | |
| parent | 1ef9c463f1efc1adfb62e42ab3dd17e8c6394373 (diff) | |
Complete rewrite using C++ and with shared state support
Diffstat (limited to 'src/timespec.h')
| -rw-r--r-- | src/timespec.h | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/src/timespec.h b/src/timespec.h deleted file mode 100644 index 2bf1182..0000000 --- a/src/timespec.h +++ /dev/null @@ -1,26 +0,0 @@ -/** - * \file timespec.h - * Declares timespec struct if platform is missing it - */ - -#ifndef TIMESPEC_H -#define TIMESPEC_H - -#include <time.h> -#if !HAVE_STRUCT_TIMESPEC -struct timespec -{ - time_t tv_sec; - long tv_nsec; -}; -#endif - -NONULL void timespec_now(struct timespec *ts); - -NONULL void timespec_addms(struct timespec *ts, unsigned long ms); -NONULL void timespec_add(struct timespec *ts, const struct timespec *add); - -NONULL int timespec_sub(struct timespec *ts, const struct timespec *sub); -NONULL int timespec_cmp(const struct timespec *x, const struct timespec *y); - -#endif /* TIMESPEC_H */ |
