diff options
author | Prakash Surya <[email protected]> | 2017-07-10 12:44:23 -0700 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2017-07-13 13:19:15 -0400 |
commit | dfbd813ec7b452884f91f134b82f30c6bdcd670c (patch) | |
tree | f795259c2321866592521986d07620e6245a326c /include/sys/time.h | |
parent | 7a35f2b49581894cde93c356fd9372ff3246d344 (diff) |
Add ASSERT3B/VERIFY3B/USEC2NSEC/NSEC2USEC macros
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Prakash Surya <[email protected]>
Closes #627
Diffstat (limited to 'include/sys/time.h')
-rw-r--r-- | include/sys/time.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/include/sys/time.h b/include/sys/time.h index 611f5dd2d..ddda6dead 100644 --- a/include/sys/time.h +++ b/include/sys/time.h @@ -46,8 +46,11 @@ #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)) +#define USEC2NSEC(m) ((hrtime_t)(m) * (NANOSEC / MICROSEC)) +#define NSEC2USEC(n) ((n) / (NANOSEC / MICROSEC)) + +#define NSEC2SEC(n) ((n) / (NANOSEC / SEC)) +#define SEC2NSEC(m) ((hrtime_t)(m) * (NANOSEC / SEC)) static const int hz = HZ; |