diff options
Diffstat (limited to 'lib/libspl/include/sys/time.h')
-rw-r--r-- | lib/libspl/include/sys/time.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/libspl/include/sys/time.h b/lib/libspl/include/sys/time.h index 0cbbd928d..852b2eff9 100644 --- a/lib/libspl/include/sys/time.h +++ b/lib/libspl/include/sys/time.h @@ -50,6 +50,14 @@ #define NSEC_PER_USEC 1000L #endif +#ifndef MSEC2NSEC +#define MSEC2NSEC(m) ((hrtime_t)(m) * (NANOSEC / MILLISEC)) +#endif + +#ifndef NSEC2MSEC +#define NSEC2MSEC(n) ((n) / (NANOSEC / MILLISEC)) +#endif + extern hrtime_t gethrtime(void); extern void gethrestime(timestruc_t *); |