Skip to content

Clock implementation is faulty #271

Closed

Description

This clock implementation is faulty:
https://github.com/Microsoft/ApplicationInsights-dotnet/blob/1ccd5b466451db1884b242b6a58b3e9401a1fbcf/src/Core/Managed/Shared/Extensibility/Implementation/Clock.cs#L31

This implementation will accumulate error when windows adjusts time on the computer:

public DateTimeOffset Time 
{ 
    get { return InitialTimeStamp + OffsetStopwatch.Elapsed; } 
} 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions