time -h option not working?
keramida at ceid.upatras.gr
Thu Apr 3 18:49:02 PST 2003
On 2003-04-04 12:35, Carl Morley <bsdmn at webize.com.au> wrote:
> I just tried to use the time command to time a process, but with the
> -h (human readable) output option:
> Eg. time -h ping -c 5 some_ip_address
> But I get back:
> -h: Command not found.
> 0.000u 0.000s 0:00.00 0.0% 0+0k 0+0io 0pf+0w
> What am I doing wrong?
You're probably using your shell's builtin "time" command instead of
/usr/bin/time. Try specifying the full path to /usr/bin/time:
: bash-2.05b$ /usr/bin/time -h ls -laR /usr/src/sys >/dev/null
: 4.96s real 0.34s user 0.69s sys
More information about the freebsd-questions