Actions
Feature #6673
closedwant a macro to convert seconds to nanoseconds and vice-versa
Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Start date:
2016-02-24
Due date:
% Done:
100%
Estimated time:
Difficulty:
Bite-size
Tags:
needs-triage
Gerrit CR:
Description
Illumos currently has macros to convert milliseconds to nanoseconds and nanoseconds to milliseconds defined in time.h:
#define MSEC2NSEC(m) ((hrtime_t)(m) * (NANOSEC / MILLISEC)) #define NSEC2MSEC(n) ((n) / (NANOSEC / MILLISEC))
It would be nice to have a similar set of macros to convert seconds to nanoseconds and vice-versa.
Updated by Matthew Ahrens about 6 years ago
- Subject changed from want a macro to convert seconds to nanoseconds and vice-versa to want a macro to convert seconds to nanoseconds and vice-versa
Updated by Electric Monk about 6 years ago
- Status changed from New to Closed
- % Done changed from 0 to 100
git commit a8f6344fa0921599e1f4511e41b5f9a25c38c0f9
commit a8f6344fa0921599e1f4511e41b5f9a25c38c0f9 Author: Eli Rosenthal <eli.rosenthal@delphix.com> Date: 2016-03-03T00:00:54.000Z 6672 arc_reclaim_thread() should use gethrtime() instead of ddi_get_lbolt() 6673 want a macro to convert seconds to nanoseconds and vice-versa Reviewed by: Matthew Ahrens <mahrens@delphix.com> Reviewed by: Prakash Surya <prakash.surya@delphix.com> Reviewed by: Josef 'Jeff' Sipek <jeffpc@josefsipek.net> Reviewed by: Robert Mustacchi <rm@joyent.com> Approved by: Dan McDonald <danmcd@omniti.com>
Actions