changed timer to use time.time instead of time.clock.