itimerspec(3type)

✨ NAME ✨

okay so bestie, today's main character is itimerspec(3type) β€” and she's all about the interval for a timer with nanosecond precision πŸ’…βœ¨

πŸ“š LIBRARY πŸ“š

She lives in the Standard C library β€” that's libc, no cap πŸŽ€

πŸ› οΈ SYNOPSIS πŸ› οΈ

       #include <time.h>

       struct itimerspec {
           struct timespec  it_interval;  /* Interval for periodic timer */
           struct timespec  it_value;     /* Initial expiration */
       };

the struct is giving two struct timespec fields, and they are:

  • it_interval β€” Interval for periodic timer ⏰
  • it_value β€” Initial expiration ⏳

πŸ’– DESCRIPTION πŸ’–

This struct describes the initial expiration of a timer, and its interval, in seconds and nanoseconds. That's the whole vibe: when it first goes off, and how often it keeps going off after that. lowkey iconic 🫢

πŸ“ STANDARDS πŸ“

POSIX.1-2024. periodt. πŸ“œπŸ‘‘

πŸ•°οΈ HISTORY πŸ•°οΈ

She's been around since POSIX.1-1996. a true vintage queen, fr fr πŸ’œ

πŸ‘€ SEE ALSO πŸ‘€


mwah πŸ’‹ this page came from Linux man-pages 6.20, dated 2026-01-08. stay slay and keep those timers precise, bestie 🫢🌈✨

πŸ“¦ where this page comes from
  • arch rolling: man-pages 6.20-1 Β· BSD-2-Clause AND BSD-3-Clause AND BSD-4.3TAHOE AND BSD-4-Clause-UC AND GPL-1.0-or-later AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-or-later AND LGPL-3.0-linking-exception AND LGPL-3.0-or-later AND LicenseRef-Public-Domain AND LicenseRef-UltraPermissive AND Linux-man-pages-1-para AND Linux-man-pages-copyleft AND Linux-man-pages-copyleft-2-para AND Linux-man-pages-copyleft-var AND MIT AND Spencer-94
  • nixpkgs unstable: man-pages 6.20
  • πŸ“œ the page's license: Linux-man-pages-copyleft
  • πŸ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms