Synchronize the local time with the NTP server.
Namespace:
Rebex.Net
Assembly:
Rebex.Time (in Rebex.Time.dll)
Syntax
Visual Basic |
---|
Public Shared Sub SynchronizeSystemClock ( _ serverName As String, _ serverPort As Integer _ ) |
C# |
---|
public static void SynchronizeSystemClock( string serverName, int serverPort ) |
Parameters
- serverName
- Type: System..::..String
The time server hostname.
- serverPort
- Type: System..::..Int32
The time server port.