# L-29 MCS 260 Fri 18 Mar 2016 : time_sin.py
"""
With the timeit module we see the difference in
efficiency between math.sin and imported sin.
"""
import timeit
T = timeit.Timer('sin(1.2)', setup='from math import sin')
S = T.timeit(100000000)
print('%.2f seconds ' % S)
T = timeit.Timer('math.sin(1.2)', setup='import math')
S = T.timeit(100000000)
print('%.2f seconds ' % S)
