question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

High Precision Timer

See original GitHub issue

To my best knowledge, we don`t have a high precision timer (in micro/nano-second) in .NET, and was wondering if this is still the same with .NET 5.0 and Core?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
brianrobcommented, Jul 6, 2021

System.Diagnostics.Stopwatch is probably the highest precision timer in the framework. On Windows, it is based on QueryPerformanceCounter, which can certainly provide microsecond granularity. See https://docs.microsoft.com/en-us/windows/win32/sysinfo/acquiring-high-resolution-time-stamps#low-level-hardware-clock-characteristics for more details.

0reactions
tarekghcommented, Jun 16, 2023

@brianrob is correct here. You may review Acquiring high-resolution time stamps which still a correct information.

Read more comments on GitHub >

github_iconTop Results From Across the Web

High Precision Event Timer - Wikipedia
The High Precision Event Timer (HPET) is a hardware timer available in modern x86-compatible personal computers. Compared to older types of timers available ......
Read more >
Disable HPET (High Precision Event Timer) for smoother ...
PSA: Disable HPET (High Precision Event Timer) for smoother gameplay ... By changing the timer it uses, it will alter the FPS the...
Read more >
High Precision Event Timer or How to Get Better Latency in ...
The HPET (High Precision Event Timer) is a timer that is used in most PCs and in some cases it increases performance, but...
Read more >
HPET ON vs HPET OFF ( WINDOWS 10 ) | Ryzen 5 2600 + ...
HPET is the short term for High Precision Event Timer and is known to improve the performance on older hardware once disabled.
Read more >
Is it Worth Disabling "High Precision Event Timer (HPET)" for
If you are not experiencing any significant issues or performance problems, it is advisable to leave HPET enabled, as it can still be...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found