iand/gocookbook — pull request #4 by deckarep (2013-11-18 02:41:41+00:00)
Title: Time a function with one line of code

I thought this was a really useful trick for timing one or more functions with one line of code. It requires a quick setup of two helper functions, and then you can use it all over the place. I do not take credit for this recipe, but I find it really useful. Feel free to edit and improve the recipe...although it's pretty straight forward.