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

  • SEARCH
  • Home
  • 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 7548463
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T09:42:18+00:00 2026-05-30T09:42:18+00:00

NSTimer doesn’t work well or can’t call desired method on time if time interval

  • 0

NSTimer doesn’t work well or can’t call desired method on time if time interval is less then 0.5 seconds or in neno seconds so i just want to know is there any alternative of NSTimer which can work for time interval less then 0.5 seconds?

Thanks in advance

  • 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-30T09:42:19+00:00Added an answer on May 30, 2026 at 9:42 am

    Before anything, the precision is much better than half a second. My tests give good results even at 100 ms.

    The problem isn’t the fire delay, it’s the leeway: essentially, timers are polled at a certain interval, and if the delay is close to that interval, you might run into problems. For instance, assume that timers are checked every 30 ms, and that you have a timer scheduled in 31 ms. 30 ms later, it still isn’t due, so it doesn’t trigger; however, the next check will be done 30 ms later, and as such your timer will actually be triggered 60 ms after its start instead of 31.

    If you really need better than that, you can use Grand Central Dispatch timers. You may get suboptimal results if you dispatch on the main queue, though.

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

Sidebar

Related Questions

Possible Duplicate: NSTimer doesn't stop How can I stop / invalidate a NSTimer?? Below
Possible Duplicate: NSTimer doesn't stop I am having a hard time stopping my timer,
Can some one help me out from the time calculation in form of hr:min:sec.
I am asking myself how to call a function only one time per week
My app uses NSTimer and it appears that NSTimer doesn't fire when the iPhone
I'm trying to create an NSTimer, then invalidate and release it, then set it
I'm doing animation with performSelector:withObject:afterDelay at 24fps. (reason being, UIImageView doesn't support different interval
Possible Duplicate: NSTimer doesn't stop I have this code: [NSTimer scheduledTimerWithTimeInterval:110.0 target:self selector:@selector(targetMethod:) userInfo:nil
MonoTouch documentation at http://docs.go-mono.com/index.aspx?link=T%3AMonoTouch.Foundation.NSTimer doesn't say.
To repeat a method call (or message send, I guess the appropriate term is)

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.