time

display CPU and elapsed times for commands

KornShell Built-in


SYNOPSIS

time [-p] command-line

DESCRIPTION

time runs the command given as its argument and produces a breakdown of total time to execute, total time spent in the user program, and total time spent in system CPU overhead.

Times given are statistical, based on where execution is at a clock tick.

Options

-p

guarantees that the historical format of the time command is output.


ENVIRONMENT VARIABLES

PATH

determines the search path that time uses to locate the command specified in command-line.


DIAGNOSTICS

If time successfully invokes command-line, it returns the exit status of command-line; otherwise possible exit status values are:
0

Successful completion.

1

An error occurred in the time utility.

2

Failure due to an invalid command line option.

126

time found command but was unable to invoke it.

127

time was unable to find command.


PORTABILITY

x/OPEN Portability Guide 4.0.


SEE ALSO

Commands:
sh


Updated MKS Toolkit [3khat16.ico]HP3000 [3khat16.ico]3kMail [archive16.gif]