systime(1)
π systime(1) π
okay so this is the General Commands Manual page for systime, and she is literally here to gather system-wide time during program execution. bestie, it's giving observability but make it cute. π
β¨ NAME β¨
systime β gather system-wide time during program execution
πΈ SYNOPSIS πΈ
systime [-P] [-r] [-t sleep_time] utility [argument ...]
systime -p [-r] [-t sleep_time]
systime [-P] -u user -s sys -i idle
systime [-P] [-r] [-t sleep_time] -T target_pid
π¦ DESCRIPTION π¦
okay so systime is similar to time(1), bestie: you use it to execute a utility program. But after execution completes, it reports the system-wide time that was spent during that time period, instead of just the portion directly caused by the utility. it's giving bigger-picture receipts, not just the main-character command's slice. β¨
This can be used to gather information about CPU utilization by kernel threads (AIO, networking) and interrupt routines on behalf of a program, but not directly attributed to it. no cap, that's the whole vibe. π§
The systime program can also be used to snapshot counters with -p, and then later used with -u -s -i to calculate time spent during a time interval that doesn't correlate to a specific command execution. For example:
$ eval `systime -p`
$ ... time passes ...
$ systime -u $systime_user -s $systime_sys -i $systime_idle
18.79 real 2.03 user 1.04 sys
The systime program can also be used to print the usage of a process with -T target_pid, also printing the system-wide usage. π«Ά
-Pβ print time spent as a percentage of overall CPU capacity of the system, capped at100%.-rβ print the usage iteratively withsleep_timeseconds sleep between iterations.-t sleep_timeβ specifysleep_timebetween iterations. If you don't specify it, it defaults to1second.-pβ snapshot counters, so you can later feed the saved values into-u,-s, and-i.-u user,-s sys,-i idleβ use the saveduser,sys, andidlevalues from a-psnapshot to calculate the time spent over that interval.-T target_pidβ print the usage of a process with thattarget_pid, and also print the system-wide usage.
π SEE ALSO π
systime(1) out β source/version: Darwin, date: April 24, 2012. πβ¨π¦π
π¦ where this page comes from
- nixpkgs unstable: shell_cmds 329
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms