The shared clock sample shows how to create a gauge in a C++ library that will work in the shared cockpit multiplayer mode. In other words, if one of the two players in the shared cockpit changes the state of a gauge, the other player will see the change without having to do anything. The sample implements a simple clock and stopwatch gauge to demonstrate the techniques involved. The source code is well commented to enable it to be used as the basis for developing shared gauges.
This sample will also work with Microsoft Flight Simulator X.