>
The output format for time is: U S E P X+D I+O F+W
For our purposes, the main ones are:
-
U user time (CPU seconds not including system calls)
-
S system time (CPU seconds for system calls only)
-
E elapse time (overall time to run the process)
-
P user and system time as a percentage of elapse time
For /usr/bin/time the outputs are:
-
real the overall time in seconds
-
user the user time (U)
-
sys the system time (S)
time ps -f
UID PID PPID C STIME TTY TIME CMD
sci-jjh 6502 20278 0.0 15:38:55 ttyt5 0:00.04 /local/bin/menu
access.
sci-jjh 14495 6502 0.0 15:38:57 ttyt5 0:00.37 -sh (tcsh)
sci-jjh 19498 23668 0.0 15:38:55 ttyt5 0:00.01 sh -c /bin/sh -c
/local
sci-jjh 20278 19498 0.0 15:38:55 ttyt5 0:00.01 /bin/sh -c
> /usr/bin/time ps -f
UID PID PPID C STIME TTY TIME CMD
sci-jjh 4116 14495 0.0 16:30:17 ttyt5 0:00.01 /usr/bin/time ps -f
sci-jjh 6502 20278 0.0 15:38:55 ttyt5 0:00.04 /local/bin/menu
access.
sci-jjh 14495 6502 0.0 15:38:57 ttyt5 0:00.38 -sh (tcsh)
sci-jjh 19498 23668 0.0 15:38:55 ttyt5 0:00.01 sh -c /bin/sh -c
/local
real 0.2
user 0.0
sys 0.1
|