There is also the inbuilt variable $SECONDS, which seconds since the instance of bash was started. Makes it really easy to do 'time elapsed' at the end of a bash script.
$ echo $SECONDS
83783
$ echo $SECONDS
83784
$ echo $SECONDS
83787