Files
tldr/pages.zh/common/time.md

13 lines
370 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 时间
> 测量一个命令运行所花费的时间。
> 注意:`time` 可以作为一个 shell 内置命令、一个独立程序或两者兼而有之。
> 更多信息:<https://manned.org/time>。
- 运行 `command` 并将时间测量结果打印到 `stdout`
`time {{command}}`
- 创建一个非常简单的秒表(仅在 Bash 中工作):
`time read`