*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->NetBSD man pages -> mstohz (9)              



NAME    [Toc]    [Back]

     mstohz - convert milliseconds to system clock ticks

SYNOPSIS    [Toc]    [Back]

     #include <sys/param.h>

     mstohz(int ms);

DESCRIPTION    [Toc]    [Back]

     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    [Toc]    [Back]

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

SEE ALSO    [Toc]    [Back]


BUGS    [Toc]    [Back]

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

BSD                              April 4, 2002                             BSD
[ Back ]
 Similar pages
Name OS Title
timeslice HP-UX scheduling interval in clock ticks per second
hz Tru64 Global Variable: Stores the number of clock ticks per second
timef IRIX Returns elapsed wall-clock time in milliseconds since the previous call to TIMEF
microuptime OpenBSD system clock
nanouptime OpenBSD system clock
nanotime OpenBSD system clock
microtime OpenBSD system clock
getmicrouptime OpenBSD system clock
getbinuptime OpenBSD system clock
getnanouptime OpenBSD system clock
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service