Ich verwende es, um den Rhytmus eines Festplattengeräuschs zu ermitteln.
Code: Alles auswählen
from time import time
moment = time()
input = ""
count = 1
print "Print elapsed time with (enter). Quit program with (q).\n"
while input != "q":
try:
input = raw_input()
except:
pass
if input == "":
print count, "%.2f" %(time() - moment)
count += 1