---
name: "tvtohz"
section: "9"
platform: "freebsd"
package: "base"
version: "16.0-CURRENT-20261027-61c70dc16a79"
release: "FreeBSD 16.0-CURRENT (2026-10-27)"
platforms: ["linux", "freebsd"]
url: "https://new.carta.tech/tvtohz"
---

# tvtohz(9)

convert time interval to tick count

## 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

[callout(9)](/callout/9.md), [microtime(9)](/microtime/9.md), [microuptime(9)](/microuptime/9.md)

## HISTORY

The **tvtohz** function first appeared in FreeBSD 3.0

## AUTHORS

This manual page was written by Kelly Yancey ⟨*kbyanc@posi.net*⟩.
