PR_GET_TIMING(2const)
β¨ NAME β¨
PR_GET_TIMING β bestie, this is the one that tells you which process timing mode is currently in use π (it's a prctl(2) operation, so it lives in the PR_GET_TIMING(2const) girlies' club π)
π LIBRARY
Standard C library (libc, -lc) β yeah she's just sitting right there in libc, no extra drama needed π«Ά
πΈ SYNOPSIS
#include <linux/prctl.h> /* Definition of PR_* constants */
#include <sys/prctl.h>
int prctl(PR_GET_TIMING);
okay so you literally just call prctl with one argument and that's the whole vibe β¨
π DESCRIPTION
Return which process timing method is currently in use.
That's it. That's the girl. She reads the current timing mode and hands it back to you, no side quests, no notes π
π RETURN VALUE
On success, PR_GET_TIMING returns the nonnegative value described above π
On error, -1 is returned, and errno is set to indicate the error π (yes, the classic -1 + errno combo, we know her)
π STANDARDS
Linux.
π¦ HISTORY
Linux 2.6.0. She's been iconic since day one, fr fr β
π₯ SEE ALSO
no cap, that's the whole page bestie π go forth and vibe check your timing mode πΈ
this lil masterpiece comes to you from Linux man-pages 6.20, dated 2026-02-08 π mwah, drink some water, ily π«Ά
π¦ 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
- Copyright 2006-2015, Michael Kerrisk <mtk.manpages@gmail.com>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms