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

NAME
     tvtohz -- convert time interval to tick count

SYNOPSIS
     #include <sys/time.h>

     int
     tvtohz(struct timeval *tv);

DESCRIPTION
     The tvtohz() function accepts a single argument tv which specifies the
     time interval over which to calculate the number of system ticks that
     would elapse.

RETURN VALUES
     Returns the integral number of system ticks expected to elapse in the
     given interval, including the current tick.

SEE ALSO
     microtime(9), microuptime(9), timecounter(9), timeout(9)

HISTORY
     The tvtohz function first appeared in FreeBSD 3.0 and was ported to
     NetBSD 4.0 as a part of timecounter(9) framework.

AUTHORS
     This manual page was written by Kelly Yancey <kbyanc@posi.net>.

NetBSD 5.0.1                   November 24, 2008                  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