Windows Forms Time

Windows Forms Time application demonstrates how to work with a time server.

More info

The sample demonstrates:

  • Synchronizes time between local machine and the time server in one line of code.
  • Shows how to elevate application permission in order to be able to set the system time.
  • Shows the time difference between NTP server and local machine.
  • Demonstrates how to connect to the server, get time and NTP/SNTP server info including stratum.