diff options
| author | Tim J. Robbins <tjr@FreeBSD.org> | 2002-06-20 07:07:00 +0000 |
|---|---|---|
| committer | Tim J. Robbins <tjr@FreeBSD.org> | 2002-06-20 07:07:00 +0000 |
| commit | 3f6c6c912ffe7c9393155fa0f843fd1d3e64a394 (patch) | |
| tree | 43c2a04fb444abecf0c018f9a28fd9dc7430a483 /usr.bin/time | |
| parent | 0d9d1e78751d4f615ce2e0415192d5434cf0db71 (diff) | |
Notes
Diffstat (limited to 'usr.bin/time')
| -rw-r--r-- | usr.bin/time/time.1 | 18 | ||||
| -rw-r--r-- | usr.bin/time/time.c | 3 |
2 files changed, 11 insertions, 10 deletions
diff --git a/usr.bin/time/time.1 b/usr.bin/time/time.1 index 08167382e7c2a..414f112d0c4ec 100644 --- a/usr.bin/time/time.1 +++ b/usr.bin/time/time.1 @@ -43,27 +43,27 @@ .Op Fl al .Op Fl h | Fl p .Op Fl o Ar file -.Ar command +.Ar utility Op Ar argument ... .Sh DESCRIPTION The .Nm utility executes and times -.Ar command +.Ar utility by initiating a timer and passing the -.Ar command +.Ar utility to the shell. After the -.Ar command +.Ar utility finishes, .Nm writes to the standard error stream, (in seconds): the total time elapsed, the time used to execute the -.Ar command +.Ar utility process and the time consumed by system overhead. .Pp Available options: @@ -103,16 +103,16 @@ Consult the manual page. .Sh DIAGNOSTICS If -.Ar command +.Ar utility could be timed successfully, its exit status is returned. If -.Ar command +.Ar utility terminated abnormally, a warning message is output to stderr. If the -.Ar command +.Ar utility was found but could not be run, the exit status is 126. If no -.Ar command +.Ar utility could be found at all, the exit status is 127. If .Nm diff --git a/usr.bin/time/time.c b/usr.bin/time/time.c index 89dbc73bbc781..88178a390fa62 100644 --- a/usr.bin/time/time.c +++ b/usr.bin/time/time.c @@ -225,7 +225,8 @@ main(argc, argv) static void usage() { - fprintf(stderr, "usage: time [-al] [-h|-p] [-o file] command\n"); + fprintf(stderr, + "usage: time [-al] [-h|-p] [-o file] utility [argument ...]\n"); exit(1); } |
