Optimized advance_time