Logs the execution time for units of code