change time.time to time.clock
update timer