4 ms·
Yes, as a consequence, it also lets you do this: time { sleep 0.1 sleep 0.2 } # result is 0.3 seconds which you obviously can't do w
by chubot 10y ago
Yes, as a consequence, it also lets you do this:
time {
sleep 0.1
sleep 0.2
}
# result is 0.3 seconds
which you obviously can't do with an external command. I wrote about that here:
https://lobste.rs/s/hwgt2h/usr_bin_time_not_command_you_think_you_know https://lobste.rs/s/hwgt2h/usr_bin_time_not_command_you_thin...
- arthur2e5 10y agoThe `time` syntax in combination with for loops or just shell functions is pretty useful as well.