total execution time feature implemented

I tried to implement a function to show the total execution time.