TVTOHZ(9)

πŸ“¦
version 15.1 Β· 3 versions
, in freebsd 14.5, freebsd 15.1, nixpkgs unstable

πŸŽ€ NAME πŸŽ€

okay so this is TVTOHZ(9), straight out of the Kernel Developer's Manual, and it's literally the page for tvtohz β€” convert time interval to tick count. That's the whole vibe: you bring a time interval, it tells you how many system ticks fit in it. simple, iconic, no cap. πŸ’…

✨ SYNOPSIS ✨

#include <sys/time.h>

int
tvtohz(struct timeval *tv);

πŸ¦‹ DESCRIPTION πŸ¦‹

The tvtohz() function accepts a single argument, tv, and bestie, that argument is the whole story. It specifies the time interval over which you want to calculate the number of system ticks that would elapse. That's it. One argument, one job, main character energy, periodt. ✨

πŸ’– RETURN VALUES πŸ’–

It returns the integral number of system ticks expected to elapse in the given interval, and yes β€” the current tick is included. so don't forget that part, okay? 🫢

🌸 SEE ALSO 🌸

go read these next if you're doing the kernel thing, iykyk πŸ’œ

πŸ”₯ HISTORY πŸ”₯

The tvtohz function first appeared in FreeBSD 3.0 β€” vintage but still slaying. πŸ‘‘

πŸŽ€ AUTHORS πŸŽ€

This manual page was written by Kelly Yancey <kbyanc@posi.net>. give her her flowers, fr fr πŸ’


okay bye bestie πŸ’– source/version: Debian; date: January 3, 2000 ✨

πŸ“¦ where this page comes from