Time.SynchronizeSystemClock Method
Namespace: Rebex.Net
Assembly: Rebex.Time.dll (version 7.0.9083)
SynchronizeSystemClock(String, Int32, Boolean)
Synchronize the local time with the TIME server.
Declaration
public static void SynchronizeSystemClock(string serverName, int serverPort, bool useTcp)
Parameters
Type | Name | Description |
---|---|---|
String | serverName | The time server hostname. |
Int32 | serverPort | The time server port. |
Boolean | useTcp | True if communicate via TCP; false to communicate via UDP. |
SynchronizeSystemClock(String, Int32)
Synchronize the local time with the TIME server using TCP protocol.
Declaration
public static void SynchronizeSystemClock(string serverName, int serverPort)
Parameters
Type | Name | Description |
---|---|---|
String | serverName | The time server hostname. |
Int32 | serverPort | The time server port. |
SynchronizeSystemClock(String)
Synchronize the local time with the TIME server using TCP protocol.
Declaration
public static void SynchronizeSystemClock(string serverName)
Parameters
Type | Name | Description |
---|---|---|
String | serverName | The time server hostname. |
SynchronizeSystemClock()
Synchronize the local time with the server. Inherited from TimeBase.
Declaration
public void SynchronizeSystemClock()