Ntp.GetTimeAsync Method
Namespace: Rebex.Net
Assembly: Rebex.Time.dll (version 7.0.9119)
GetTimeAsync(Object)
Begins asynchronous GetTime operation. Sends a request for time to the NTP server passed to the constructor and waits for the answer that contains the time values to calculate the offset between the local and server time.
Declaration
public Task<NtpResponse> GetTimeAsync(object state = null)
Parameters
Type | Name | Description |
---|---|---|
Object | state | An optional user-provided object that identifies this particular asynchronous operation. |
Returns
Type | Description |
---|---|
Task<NtpResponse> | The server's response. Use its TimeOffset to determine the time offset. |