Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Apr 2017 12:30:48 -0400
From:      Ernie Luzar <luzar722@gmail.com>
To:        FreeBSD questions <freebsd-questions@FreeBSD.org>
Subject:   Problem with time command
Message-ID:  <58FA33B8.70807@gmail.com>

next in thread | raw e-mail | index | archive | help
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?





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?58FA33B8.70807>