HPlogo HP-UX Reference Volume 1 of 5 > t

time(1)

» 

Technical documentation

Complete book in PDF

 » Table of Contents

 » Index

NAME

time — time a command

SYNOPSIS

time command

XPG4 only

time [-p] utility [argument ...]

DESCRIPTION

command is executed. Upon completion, time prints the elapsed time during the command, the time spent in the system, and the time spent executing the command. Times are reported in seconds.

Execution time can depend on the performance of the memory in which the program is running.

The times are printed on standard error.

Note that the shell also has a keyword time that times an entire pipeline if used anywhere in the pipeline, unlike time(1) command which times a particular command if used in a pipeline.

Options

time recognizes the following option:

-p

(XPG4 only.) Writes the timing statistics to standard error.

STANDARDS CONFORMANCE

time: SVID2, XPG2, XPG3, XPG4, POSIX.2

© Hewlett-Packard Development Company, L.P.