I always get ZeroDivisionError. It appears that on my machine (Powerbook G4 running OSX 10.2.1) that time.clock() isn't fine grained enough, so it makes a pass of the loop without clock() being able to detect the time difference. -- Skip Montanaro - skip at pobox.com http://www.mojam.com/ http://www.musi-cal.com/