Changing Main Game Loop Or Change World Class

As im working on an RTS too im very interested on this topic, its would be great to have at least a good starting point to override the main game loop to implement lockstep.