time.1 (1094B)
- .\" utils-std: Collection of commonly available Unix tools
- .\" Copyright 2017 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 Ns | Ns Fl v
- .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
- .Bl -tag -width _p
- .It Fl p
- (default) Output in POSIX format.
- .It Fl v
- Detailed output.
- .El
- .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 occurred 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 getrusage 3 ,
- .Xr times 3
- .Sh STANDARDS
- .Nm
- should be compliant with the
- IEEE Std 1003.1-2024 (“POSIX.1”)
- specification.
- .Sh AUTHORS
- .An Haelwenn (lanodan) Monnier Aq Mt contact+utils@hacktivis.me