Use time_to_gametick / gametick_to_time to simplify code.