intro(1)
time
$ time (date; sleep 1; date; sleep 1; date; sleep 1; date)
Tuesday 21 March 00:13:52 AEDT 2017
Tuesday 21 March 00:13:53 AEDT 2017
Tuesday 21 March 00:13:54 AEDT 2017
Tuesday 21 March 00:13:55 AEDT 2017
real 0m3.007s
user 0m0.000s
sys 0m0.000s
$ time (date; sleep 1; date; sleep 2; date; sleep 3; date)
Tuesday 21 March 00:15:44 AEDT 2017
Tuesday 21 March 00:15:45 AEDT 2017
Tuesday 21 March 00:15:47 AEDT 2017
Tuesday 21 March 00:15:50 AEDT 2017
real 0m6.007s
user 0m0.000s
sys 0m0.000s
$ time (date +%s; sleep 1; date +%s; sleep 2; date +%s; sleep 3; date +%s)
1490015904
1490015905
1490015907
1490015910
real 0m6.007s
user 0m0.000s
sys 0m0.000s
:
$ if :; then echo hello world; fi
hello world