tvtohz(9)

tvtohz9

Convert time interval to tick count

Usage

#include <sys/time.h>

int

tvtohz(struct timeval *tv);

Overview

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.

History

The tvtohz function first appeared in FreeBSD 3.0

Authors

This manual page was written by Kelly Yancey ⟨[email protected]⟩.

From freebsd-manpages 6.0-5 in Debian 4.0 (Etch). Parsed by carta from the page's mdoc source.