timecounter_init(9)
β¨ NAME β¨
timecounter_init β initialize a time counter. and hiiii bestie, this is the timecounter_init(9) page from the Kernel API Manual π β you're gonna slay this.
πΈ SYNOPSIS πΈ
void timecounter_init (struct timecounter *tc , struct cyclecounter *cc
, u64 start_tstamp );
π ARGUMENTS π
tcβ pointer to the time counter that's getting initialized/reset, no cap.ccβ a cycle counter, ready to be used. iconic.start_tstampβ an arbitrary initial time stamp, periodt.
π¦ DESCRIPTION π¦
After this call, the current cycle register (roughly) corresponds to the initial time stamp β yes, roughly, bestie, that's the tea. Every call to timecounter_read increments the time stamp counter by the number of elapsed nanoseconds. that's the whole plot and it ate π
π₯ SEE ALSO π₯
- Kernel file
./include/linux/timecounter.h struct cyclecounter(9)struct timecounter(9)cyclecounter_cyc2ns(9)timecounter_adjtime(9)timecounter_read(9)timecounter_cyc2time(9)
okay that's the page, bestie π«Ά β footer tea: source/version is ./include/linux, date is October 2026, and the page is timecounter_init(9). mwah π
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms