#!/bin/bash # # Timothy Brooks 2012 # # timeit - time the execution of a command # before="$(date +%s)" $1 after="$(date +%s)" elapsed_seconds="$(expr $after - $before)" echo Elapsed time for code block: $elapsed_seconds