*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->FreeBSD man pages -> time (1)              



NAME    [Toc]    [Back]

     time -- time command execution

SYNOPSIS    [Toc]    [Back]

     time [-al] [-h | -p] [-o file] utility [argument ...]

DESCRIPTION    [Toc]    [Back]

     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.

     The following options are available:

     -a      If the -o flag is used, append to the specified file rather than
	     overwriting it.  Otherwise, this option has no effect.

     -h      Print times in a human friendly format.  Times are printed in
	     minutes, hours, etc. as appropriate.

     -l      The contents of the rusage structure are printed as well.

     -o file
	     Write the output to file instead of stderr.  If file exists and
	     the -a flag is not specified, the file will be overwritten.

     -p      Makes time output POSIX.2 compliant (each time is printed on its
	     own line).

     Some shells may provide a builtin time command which is similar or identical
 to this utility.  Consult the builtin(1) manual page.

ENVIRONMENT    [Toc]    [Back]

     The PATH environment variable is used to locate the requested utility if
     the name contains no `/' characters.

DIAGNOSTICS    [Toc]    [Back]

     If utility could be timed successfully, its exit status is returned.  If
     utility terminated abnormally, a warning message is output to stderr.  If
     the utility was found but could not be run, the exit status is 126.  If
     no utility could be found at all, the exit status is 127.	If time
     encounters any other error, the exit status is between 1 and 125

SEE ALSO    [Toc]    [Back]

     builtin(1), csh(1), getrusage(2), wait(2)

STANDARDS    [Toc]    [Back]

     The time utility is expected to conform to ISO/IEC 9945-2:1993

HISTORY    [Toc]    [Back]

     A time utility appeared in Version 3 AT&T UNIX.

FreeBSD 5.2.1			 June 6, 1993			 FreeBSD 5.2.1
[ Back ]
 Similar pages
Name OS Title
time Tru64 Times the execution of a command
env HP-UX set environment for command execution
rexec_r Tru64 Allow command execution on a remote host
rexec Tru64 Allow command execution on a remote host
crttrace IRIX arrange for command execution to be traced
nanosleep Linux pause execution for a specified time
profil HP-UX execution time profile
sleep Tru64 Suspends execution for at least the specified time
profil Linux execution time profile
profil IRIX execution time profile
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service