Add a method to save the computation time at the end of the execution.