convert microseconds to clock ticks
clock_t drv_usectohz(clock_t microsecs);
drv_usectohz converts the length of time expressed by
microsecs, which is in units of microseconds,
into units of clock ticks.
The number of microseconds to convert to equivalent clock ticks.
The value returned is the smallest number of clock ticks that represent
a time interval equal to or greater than the microsecs argument.
No error value is returned.
If the number of ticks equivalent
to the microsecs argument is too large to be represented as a
then the maximum clock_t value will be returned.
Several functions either take time values expressed in clock ticks as
or return time values expressed in clock ticks
The length of a clock tick can vary across different implementations,
and therefore drivers should not include any hard-coded assumptions
about the length of a tick.
drv_usectohz and the complementary function
can be used, as necessary, to convert between
microseconds and clock ticks.
Context and synchronization
1, 2, 3, 4, 5, 5mp, 6, 6mp, 7, 7mp, 7.1, 7.1mp, 8, 8mp
``Delays and busy-waits'' in HDK Technical Reference
19 June 2005
© 2005 The SCO Group, Inc. All rights reserved.
OpenServer 6 and UnixWare (SVR5) HDK - June 2005