time.1 (1024B)
- .\" Collection of Unix tools, comparable to coreutils
- .\" Copyright 2017-2022 Haelwenn (lanodan) Monnier <contact+utils@hacktivis.me>
- .\" SPDX-License-Identifier: MPL-2.0
- .Dd 2022-12-01
- .Dt TIME 1
- .Os
- .Sh NAME
- .Nm time
- .Nd measure time used by a command
- .Sh SYNOPSIS
- .Nm
- .Op Fl p
- .Ar command
- .Op Ar argument...
- .Sh DESCRIPTION
- .Nm
- measures the wall-clock time, user CPU time, system/kernel CPU time, used by
- .Ar command
- and outputs it to stderr.
- .Sh OPTIONS
- .Fl p
- is ignored for compatibility reasons, the output is always in the POSIX format.
- .Sh EXIT STATUS
- If
- .Ar command
- is invoked, the exit status should be the one given by
- .Ar command .
- Otherwise, it will exit with the following values:
- .Bl -tag -width 1-125
- .It 1-125
- An error occured in
- .Ar command
- .It 126
- .Ar command
- was found but couldn't be invoked
- .It 127
- .Ar command
- could not be found
- .El
- .Sh SEE ALSO
- .Xr times 3
- .Sh STANDARDS
- .Nm
- is compliant with the
- .St -p1003.1-2008
- specification.
- .Sh AUTHORS
- .An Haelwenn (lanodan) Monnier Aq Mt contact@hacktivis.me