logo

utils

~/.local/bin tools and git-hooks git clone https://hacktivis.me/git/utils.git

time.1 (1024B)


  1. .\" Collection of Unix tools, comparable to coreutils
  2. .\" Copyright 2017-2022 Haelwenn (lanodan) Monnier <contact+utils@hacktivis.me>
  3. .\" SPDX-License-Identifier: MPL-2.0
  4. .Dd 2022-12-01
  5. .Dt TIME 1
  6. .Os
  7. .Sh NAME
  8. .Nm time
  9. .Nd measure time used by a command
  10. .Sh SYNOPSIS
  11. .Nm
  12. .Op Fl p
  13. .Ar command
  14. .Op Ar argument...
  15. .Sh DESCRIPTION
  16. .Nm
  17. measures the wall-clock time, user CPU time, system/kernel CPU time, used by
  18. .Ar command
  19. and outputs it to stderr.
  20. .Sh OPTIONS
  21. .Fl p
  22. is ignored for compatibility reasons, the output is always in the POSIX format.
  23. .Sh EXIT STATUS
  24. If
  25. .Ar command
  26. is invoked, the exit status should be the one given by
  27. .Ar command .
  28. Otherwise, it will exit with the following values:
  29. .Bl -tag -width 1-125
  30. .It 1-125
  31. An error occured in
  32. .Ar command
  33. .It 126
  34. .Ar command
  35. was found but couldn't be invoked
  36. .It 127
  37. .Ar command
  38. could not be found
  39. .El
  40. .Sh SEE ALSO
  41. .Xr times 3
  42. .Sh STANDARDS
  43. .Nm
  44. is compliant with the
  45. .St -p1003.1-2008
  46. specification.
  47. .Sh AUTHORS
  48. .An Haelwenn (lanodan) Monnier Aq Mt contact@hacktivis.me