Problem with time command

Ernie Luzar luzar722 at gmail.com
Fri Apr 21 16:31:40 UTC 2017


Hello list;

Was testing the time command. These problems came to light.


time [-al] [-h | -p ] utility-name

issuing time -h custom.refresh
results in error message -h: Command not found

issuing time -p custom.refresh
results in error message -p: Command not found

The DESCRIPTION says,
The time utility executes and times the specified utility. After the 
utility finishes, time writes to the standard error stream, (in 
seconds): the total time elapsed, the time used to execute the utility 
process and the time consumed by system overhead.

issuing time custom.refresh
results in this output
0.089u 0.469s 0:01.44 37.5%     32+181k 64+137io 709pf+0w

so based on the description
0.089u  = the total time elapsed
0.469s  = the time used to execute the utility [ie custom.refresh]
0:01.44 = time consumed by system overhead

These 3 figures do not cross foot balance.
Shouldn't  time consumed by system overhead + the time used to execute 
the utility = the total time elapsed?

so that leaves
37.5%  and
32+181k 64+137io 709pf+0w
without any description of what it is and no explanation of what the u 
suffix of 0.089u means or the s suffix of 0.469s means. The time command 
description already states [in seconds].


Can anyone shed some light on these problems?




More information about the freebsd-questions mailing list