SHARE
TWEET

Untitled

a guest Nov 19th, 2012 34 Never
  1. import timeit
  2. import winsound
  3.  
  4. def doit():
  5.     winsound.PlaySound(r'C:\WINDOWS\media\Windows XP Error.wav', winsound.SND_FILENAME)
  6.  
  7. t = timeit.Timer(stmt = doit)
  8. n = t.timeit(number = 100)
  9. print n/100 -0.999
RAW Paste Data
Top