Refactored code to strip out the elapsed_time function into a new module called timeutils