Aug-20-2024, 07:09 PM
While researching code timing online, the following code kept getting the most thumbs-up and always seemed to have a depreciated warning in the comments.
Can anyone point me to "proper" timing code?
1 2 3 4 |
import time start_time = time.time() print (ami.oct2dec( 14976 )) print ( "--- %s seconds ---" % (time.time() - start_time)) |