MSTOHZ(9)              NetBSD Kernel Developer's Manual              MSTOHZ(9)

NAME
     mstohz -- convert milliseconds to system clock ticks

SYNOPSIS
     #include <sys/param.h>

     int
     mstohz(int ms);

DESCRIPTION
     mstohz can be used to convert time in milliseconds to system clock ticks,
     as used by the callout(9) facility, in an integer-overflow safe way.

     This function is implemented as a define in the <sys/param.h> header.
     Individual ports can have a processor-specific, more efficient version
     implemented in their <machine/param.h> header as a define.

RETURN VALUES
     The return value is the number of clock ticks for the specified value.

SEE ALSO
     callout(9)

BUGS
     The machine-independent mstohz() function does not make use of expensive
     64-bit integer arithmetic, so the result will be rounded down to one sec-
     ond if the parameter is larger than 131072 milliseconds.

NetBSD 5.0.1                     April 4, 2002                    NetBSD 5.0.1

You can also request any man page by name and (optionally) by section:

Command: 
Section: 
Architecture: 
Collection: 
 

Use the DEFAULT collection to view manual pages for third-party software.


©1994 Man-cgi 1.15, Panagiotis Christias <christia@softlab.ntua.gr>
©1996-2014 Modified for NetBSD by Kimmo Suominen