Measure how much time different blocks of code takes to execute