print time: add the total time of execution and function time spend