cpp code for realtime demo