Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 704623
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T03:57:44+00:00 2026-05-14T03:57:44+00:00

At MSDN page for Stopwatch class I discovered link to interesting article which makes

  • 0

At MSDN page for Stopwatch class I discovered link to interesting article which makes following statement about Stopwatch:

However there are some serious issues:

  • This can be unreliable on a PC with multiple processors. Due to a bug in
    the BIOS, Start() and Stop() must be executed on the same processor to get
    a correct result.

  • This is unreliable on processors that do not have a constant clock
    speed (most processors can reduce the clock speed to conserve
    energy). This is explained in detail here.

I am little confused. I’ve seen tons of examples of using Stopwatch and nobody mention this drawbacks. How serious is this? Should I avoid using Stopwatch?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T03:57:44+00:00Added an answer on May 14, 2026 at 3:57 am

    It is not broken it just has limitations. For most purposes (read: informal micro-benchmarking) StopWatch is fine to use simply because it is good enough for informal testing. For more formal purposes you would most likely want to roll your own instrumentation code as you would that much more invested in getting proper results.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

On the page http://msdn.microsoft.com/en-us/library/bb202066.aspx If references something called POLL Driver V2 however this is
This MSDN page mentions that there're nothrow versions of new and delete . nothrow
I am reading SQL Server lock escalation from MSDN Page about SQL Server lock
There's this ... MSDN page, IQueryable(Of T) Interface . Can you do a better
When does script added to the page with Page.ClientScript.RegisterStartupScript() actually run? MSDN states "when
MSDN says that you should use structs when you need lightweight objects. Are there
MSDN displays the following for CreatePatternBrush: You can delete a pattern brush without affecting
Reading MSDN (and other sources) about custom report items (CRI) for reporting services 2005.
The MSDN documentation says that public class SomeObject { public void SomeOperation() { lock(this)
On this MSDN page it is stated that nested installations (also called concurrent installations)

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.