Simple timer to perform a block and display the elapsed time