TestimoX

API Reference

Class

TimeSync

Namespace ComputerX.Time
Assembly ComputerX
Modifiers static

Provides utilities for checking time synchronization.

Inheritance

  • Object
  • TimeSync

Methods

public static TimeSyncInfo GetLocalStatus(DateTime referenceUtcTime) #
Returns: TimeSyncInfo

Gets local time sync status against a reference UTC timestamp.

Parameters

referenceUtcTime System.DateTime requiredposition: 0
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 requiredposition: 0
Target computer name or IP.
referenceUtcTime System.DateTime requiredposition: 1
Reference UTC time used to compute skew.
cancellationToken System.Threading.CancellationToken = null optionalposition: 2
Cancellation token.