Fixed timing to use time.time() and seconds for interval