diff options
Diffstat (limited to 'shared/util.h')
-rw-r--r-- | shared/util.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/shared/util.h b/shared/util.h index 734a523..bedafa3 100644 --- a/shared/util.h +++ b/shared/util.h @@ -48,9 +48,13 @@ unsigned long long stat_mstamp(const struct stat *st); * ************************************************************************ */ #define USEC_PER_SEC 1000000ULL #define USEC_PER_MSEC 1000ULL +#define MSEC_PER_SEC 1000ULL +#define NSEC_PER_MSEC 1000000ULL unsigned long long ts_usec(const struct timespec *ts); +unsigned long long ts_msec(const struct timespec *ts); unsigned long long now_usec(void); +unsigned long long now_msec(void); /* endianess and alignments */ /* ************************************************************************ */ |