Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Nov 19th, 2012  |  syntax: Python  |  size: 0.21 KB  |  views: 34  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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
clone this paste RAW Paste Data