# Time Synchronization This example shows how to select either NTP or PTP as synchronization method and prints out the synchronization status. ```.. literalinclude:: main.cpp :language: cpp ```