OILS
/
demo
/ bash-seconds.sh
View on Github
|
oilshell.org
7 lines, 3 significant
1
#!/usr/bin/env bash
2
#
3
# Demo of $SECONDS
4
5
seconds=${1:-1}
6
sleep $seconds
7
echo
"
Task took $SECONDS seconds to complete.
"