diff --git a/include/sys/time.h b/include/sys/time.h index 650166145..611f5dd2d 100644 --- a/include/sys/time.h +++ b/include/sys/time.h @@ -46,6 +46,9 @@ #define MSEC2NSEC(m) ((hrtime_t)(m) * (NANOSEC / MILLISEC)) #define NSEC2MSEC(n) ((n) / (NANOSEC / MILLISEC)) +#define NSEC2SEC(n) ((n) / (NANOSEC / SEC)) +#define SEC2NSEC(m) ((hrtime_t)(m) * (NANOSEC / SEC)) + static const int hz = HZ; #define TIMESPEC_OVERFLOW(ts) \