Cmd: port /delay and related commands to C++