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
5seconds=${1:-1}
6sleep $seconds
7echo "Task took $SECONDS seconds to complete."