TVTOHZ(9)
β¨ TVTOHZ(9) β¨
okay so bestie, you're in the Kernel Developer's Manual section 9, and this is literally the page for tvtohz β which stands for "timeval to hz" if you were wondering, and yes it's giving converter energy π
πΈ NAME πΈ
tvtohz β convert time interval to tick count π
π¦ SYNOPSIS π¦
#include <sys/time.h>
int
tvtohz(struct timeval *tv);
π DESCRIPTION π
so the tvtohz() function takes exactly one argument, and it's tv, and tv is the whole vibe check here β it specifies the time interval over which you wanna calculate the number of system ticks that would elapse. that's it. that's the job. no cap β¨
like, you hand it a struct timeval and it tells you how many ticks that stretch of time is worth. iconic behaviour honestly π«Ά
π RETURN VALUES π
it returns the integral number of system ticks expected to elapse in the given interval β including the current tick. don't forget the current tick bestie, she's part of the count too π
π SEE ALSO π
go read those too, they're all in the same friend group fr fr π
π§ HISTORY π§
the tvtohz function first appeared in FreeBSD 3.0 β a true legacy queen, she's been serving since forever π
π AUTHORS π
this manual page was written by Kelly Yancey <kbyanc@posi.net>. thank you for your service, we owe you everything ππ
and that's the whole page bestie, no crumbs left, we ate and left no notes π
Debian Β· January 3, 2000 Β· that's the source, the version and the date, mwah π π
π¦ where this page comes from
- debian bookworm: freebsd-manpages 12.2-1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- debian trixie: freebsd-manpages 12.2-2 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu jammy: freebsd-manpages 12.2-1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu noble: freebsd-manpages 12.2-1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu questing: freebsd-manpages 12.2-2
- ubuntu resolute: freebsd-manpages 12.2-2build1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu stonking: freebsd-manpages 12.2-2build1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- Copyright (c) 2000 Kelly Yancey
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms