UNPKG
linux-command
Version:
latest (1.20.0)
1.20.0
1.19.1
1.19.0
1.18.0
1.14.0
1.13.1
1.13.0
1.12.0
1.11.2
1.11.1
1.11.0
1.10.2
1.10.1
1.10.0
1.9.1
1.9.0
1.8.3
1.8.2
1.8.1
1.8.0
1.6.1
1.6.0
1.5.1
1.5.0
1.3.2
1.3.1
1.3.0
1.2.15
1.2.14
1.2.12
1.2.11
1.2.10
1.2.9
1.2.8
1.2.7
1.2.6
1.2.5
1.2.4
1.2.3
1.2.2
1.2.1
1.1.0
1.0.6
1.0.5
1.0.3
1.0.2
1.0.1
1.0.0
Linux Command
jaywcjlove.github.io/linux-command/
jaywcjlove/linux-command
linux-command
/
command
/
times.md
32 lines
(20 loc)
•
507 B
Markdown
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
times === 显示进程累计时间。
#
# 主要用途
- 打印出shell及其子进程累计使用的用户时间和系统时间。
#
# 返回值
总是返回成功。
#
# 例子
```shell
#
执行命令
times
#
返回结果
0m0.037s 0m0.009s 0m0.010s 0m0.024s
#
根据
times
(2)的man手册,对应关系如下:
#
用户时间 | 系统时间
#
子进程的用户时间 | 子进程的系统时间
```
#
## 注意
1. 该命令是bash内建命令,相关的帮助信息请查看`help`命令。