improved delta time calculation in marco_generator