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 3304548
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T21:04:25+00:00 2026-05-17T21:04:25+00:00

In researching options for getting better than the 15 ms resolution provided by .NET

  • 0

In researching options for getting better than the 15 ms resolution provided by .NET timer objects (see https://stackoverflow.com/questions/3744032/why-are-net-timers-limited-to-15-ms-resolution), I am looking at the different timer objects that Windows provides. I have identified the following:

  • Old style Windows timer
  • Multimedia timers
  • Waitable timer
  • Timer queue timers
  • Threadpool timers

Are there other timer types available in the Windows API?

  • 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-17T21:04:26+00:00Added an answer on May 17, 2026 at 9:04 pm

    I asked this question because I was interested in implementing a periodic timer that would give me better granularity than the timers that are supplied with .NET. My investigation of those timers (Windows.Forms.Timer, System.Timers.Timer, and System.Threading.Timer) shows that the best I can hope for is 15 ms granularity, and accuracy of -1 to +30 ms. That’s fine for most applications, but not for the application I was working on.

    For details of my investigation, see Why are .NET timers limited to 15 ms resolution? and http://www.informit.com/guides/content.aspx?g=dotnet&seqNum=815.

    That led me to looking for periodic timer objects available under Windows. I identified the five types that I posted in the original question. I didn’t find any others. I discarded the old-style Windows timer because I don’t want to be processing messages. I then wrote managed prototypes in C# for the other four timer types and did some testing.

    All four timer types (Multimedia timers, Waitable timers, Timer queue timers, and Threadpool timers) give a reliable 1 ms interval, with very good resolution. Of those, the Threadpool timer is by far the easiest to interact with, but unfortunately it’s not supported on Windows XP. Timer queue timers have a dizzying array of options, but if you ignore most of the options they’re almost as simple as Threadpool timers. See Exploring options for better timers for more info.

    I chose to wrap the timer queue timer for my general timer class in .NET. You can see it here.

    You might also be interested in Waitable Timers in .NET with C#.

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

Sidebar

Related Questions

I've been getting Connection forcibly closed errors and in researching a resolution, I have
I've been researching nosql options available for .NET lately and MongoDB is emerging as
I have been researching options for printing report-like data via a web application. Some
I am currently researching the options that are available (both Open Source and Commercial)
I'm researching what options I have to access a browser's edit fields from outside.
On researching another question I noted that the stat function in Perl can take
While researching the issue of JSON vs XML , I came across this question
I spent hours researching the problem, and just want to share a solution in
I have been researching asynchronous messaging, and I like the way it elegantly deals
I've been researching PHP frameworks as of late for some personal projects, and it

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.