Skip to content

Commit 175f10f

Browse files
authored
Create times.md
新增内建命令times的文件
1 parent e99a460 commit 175f10f

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

command/times.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
times
2+
===
3+
4+
显示进程累计时间。
5+
6+
## 主要用途
7+
8+
- 打印出shell及其子进程累计使用的用户时间和系统时间。
9+
10+
## 返回值
11+
12+
总是返回成功。
13+
14+
## 例子
15+
16+
```shell
17+
# 执行命令
18+
times
19+
# 返回结果
20+
0m0.037s 0m0.009s
21+
0m0.010s 0m0.024s
22+
# 根据times(2)的man手册,对应关系如下:
23+
# 用户时间 | 系统时间
24+
# 子进程的用户时间 | 子进程的系统时间
25+
```
26+
27+
### 注意
28+
29+
1. 该命令是bash内建命令,相关的帮助信息请查看`help`命令。
30+
31+
<!-- Linux命令行搜索引擎:https://jaywcjlove.github.io/linux-command/ -->

0 commit comments

Comments
 (0)