# File: timeTest1.py # # For a simple function call, such as a call to the sin() function, # we expect the total running time to be proportional to the number # of times we call the function. import time import math import random REPS = 4000000 #REPS = 10 random.seed() start = time.time() for i in range (0, REPS): x = math.sin(3.14159 * random.random()) # print(x) finish = time.time() print("Elapsed time =", finish - start, "seconds")