Rebex

Skip to content, Skip to navigation




Sample: SimpleSync

Synchronize time between local machine and the time server in one line of code.

C#

using Rebex.Net;
...
// synchronize local time with time server 
Ntp.SynchronizeSystemClock("pool.ntp.org");

VB.NET

Imports Rebex.Net
...

' synchronize local time with time server 
Ntp.SynchronizeSystemClock("pool.ntp.org");

It is that simple!

See also: