Replace time.clock() with time.time()