Added ability to calculate periodic task execution time.