TVTOHZ(9)
π 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
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- nixpkgs unstable: source
- Copyright (c) 2000 Kelly Yancey
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms