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