a quick snip that determines how long it takes to run a lambda of code