Open
Description
Looking at the source code, the function returns DateTime.UtcNow.Ticks when there is no high-resolution timer.
The documentation incorrectly mentions DateTime.Now.
The code looks right, doc seems wrong
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
- ID: b82939c8-9b3c-b8e6-5268-c97fbdcf9c1a
- Version Independent ID: 1cc404de-7a6a-912c-228d-46f76fdce63e
- Content: Stopwatch.GetTimestamp Method (System.Diagnostics)
- Content Source: xml/System.Diagnostics/Stopwatch.xml
- Product: dotnet-api
- GitHub Login: @dotnet-bot
- Microsoft Alias: dotnetcontent