Skip to content
This repository was archived by the owner on Jul 15, 2023. It is now read-only.

DateTime.Now versus Stopwatch (or DateTime.UtcNow) #88

@brettshearer

Description

@brettshearer

Code such as:
var elapsed = DateTime.Now - _startTime;
(in VSServiceProvider) allows time to travel backward (and is slower) when clocks are resynced or daylight saving finishes.

Would you like me to change all code to use Stopwatch where practical?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions