Warning: main(/www/www/htdocs/style/globals.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/utilities/t/time.html on line 1

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/globals.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/utilities/t/time.html on line 1

Warning: main(/www/www/htdocs/style/header.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/utilities/t/time.html on line 8

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/header.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/utilities/t/time.html on line 8

time

Determine the execution time of a command (UNIX)

Syntax:

time command

Runs on:

Neutrino

Options:

command
The command, including any of its options, for which the execution time is to be determined.

Description:

The time utility and the time shell built-in determine the execution time of command, which must be specified. When execution of command is complete, the time utility displays the total elapsed time for execution, the time spent in the system, and the time spent in executing command. Times are reported in hours, minutes, and seconds.

Times aren't always accurate to the milliseconds as displayed, depending on the tick size.

Examples:

Time the execution of dcheck -b2048 /dev/hd0:

time dcheck -b2048 /dev/hd0

Exit status:

The time utility exits with the exit status of the command that was timed.

Caveats:

The time command doesn't obtain execution information from a remote node. To time remote programs, use the on command to run time on the same machine as the program being timed, e.g.:

on -n 61 time sleep 30

NOT:

time on -n 61 sleep 30

See also:

date


Warning: main(/www/www/htdocs/style/footer.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/utilities/t/time.html on line 126

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/footer.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/utilities/t/time.html on line 126