API Reference
Class
TimeSync
Provides utilities for checking time synchronization.
Inheritance
- Object
- TimeSync
Methods
public static TimeSyncInfo GetLocalStatus(DateTime referenceUtcTime) #Returns:
TimeSyncInfoGets local time sync status against a reference UTC timestamp.
Parameters
- referenceUtcTime System.DateTime
- Reference UTC time used to compute skew.
public static async Task<TimeSyncInfo> QueryRemoteStatusAsync(String computerName, DateTime referenceUtcTime, CancellationToken cancellationToken = null) #Returns:
Task<TimeSyncInfo>Queries remote time sync status and skew via Service Control and WMI.
Parameters
- computerName System.String
- Target computer name or IP.
- referenceUtcTime System.DateTime
- Reference UTC time used to compute skew.
- cancellationToken System.Threading.CancellationToken = null
- Cancellation token.
Inherited Methods
public override Boolean Equals(Object obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object