autotest: support sims that do their own time control

This commit is contained in:
Andrew Tridgell 2015-04-01 09:12:11 -07:00
parent 5947160fd7
commit f82f0da2b3

View File

@ -197,4 +197,6 @@ while True:
time.sleep(last_wall_time+scaled_frame_time - now)
last_wall_time = time.time()
a.time_advance(frame_time)
if frame_start == a.time_now:
# time has not been advanced by a.update()
a.time_advance(frame_time)