update_frame_time - don't make this an inline function