Skip to content

Commit f1501f6

Browse files
committed
Merge branch 'master' of github.com:khanhicetea/today-i-learned
2 parents fc985b5 + beb06bd commit f1501f6

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
- Date : 2017-10-04
2+
- Tags : #sysadmin #cpu #time
3+
4+
## TIME command output meaning
5+
6+
When you want to know how long does it take to run a process, just use `time` command as a prefix
7+
8+
```bash
9+
$ time my_program arg1 arg2
10+
real 0m0.003s
11+
user 0m0.000s
12+
sys 0m0.004s
13+
```
14+
15+
- **real** : wall clock time, mean time to start to finish your process
16+
- **user** : CPUs-time outside the kernel
17+
- **sys** : CPUs-time within the kernel
18+
19+
**real+sys** result is total multi CPUs time (so if you have a multi core CPUs, it is often bigger than **real**)
20+

0 commit comments

Comments
 (0)