*** UNIX MANUAL PAGE BROWSER ***

A Nergahak database for man pages research.

Navigation

Directory Browser

1Browse 4.4BSD4.4BSD
1Browse Digital UNIXDigital UNIX 4.0e
1Browse FreeBSDFreeBSD 14.3
1Browse MINIXMINIX 3.4.0rc6-d5e4fc0
1Browse NetBSDNetBSD 10.1
1Browse OpenBSDOpenBSD 7.7
1Browse UNIX v7Version 7 UNIX
1Browse UNIX v10Version 10 UNIX

Manual Page Search

Manual Page Result

0 Command: mstohz | Section: 9 | Source: NetBSD | File: mstohz.9
MSTOHZ(9) FreeBSD Kernel Developer's Manual MSTOHZ(9) NAME mstohz, hztoms - convert between milliseconds and system clock ticks SYNOPSIS #include <sys/param.h> unsigned int mstohz(unsigned int ms); unsigned int hztoms(unsigned int hz); DESCRIPTION The mstohz() macro 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. Conversely, hztoms() converts system clock ticks to milliseconds. These macros are defined 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 either the number of clock ticks or milliseconds for the specified value. SEE ALSO param(3), callout(9), tvtohz(9) BUGS Neither mstohz() nor hztoms() make use of expensive 64-bit integer arithmetic. The result from mstohz() will be rounded down to one second if the parameter is larger than 131072 milliseconds. FreeBSD 14.1-RELEASE-p8 September 28, 2019 FreeBSD 14.1-RELEASE-p8

Navigation Options