Question:

Write a program to print the running time of execution of “1+1” for 100 times. Use timeit() function to measure the running time.

Program:

Explanation:

Runtime or execution time is the time during which a program is running (executing), in contrast to other program lifecycle phases such as compile time, link time and load time.

The Timer function keeps track of the time

Output:

Leave a Reply