Show profiling in output (was: elapsed time)

A update of #5 including requested features. Nearly a year on and I am still using and loving this feature, so I think it's a winner.

/cc @tsommer