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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T17:21:26+00:00 2026-06-14T17:21:26+00:00

I am implementing a countdown method in my game, which will use a 15

  • 0

I am implementing a countdown method in my game, which will use a 15 second countdown. I have been looking around for different ways of implementing this and believe NSTimer is the way to go.

However, someone told me that it can be impacted by processor speed etc. and my question is if this is true and if so, how do I counter for it?

I have seen this: NSTimer but dont fully understand the impact of this.

Is there any other way of guarantee 15 second downtime and all devices?

  • 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-06-14T17:21:27+00:00Added an answer on June 14, 2026 at 5:21 pm

    I don’t understand your last sentence…

    However, I believe your friends are right that it is slightly off compared to what actual seconds countdown to but I assure you that the difference is so small that it’s not noticeable, especially for a game.

    The reason for the difference is because you set an NSTimer to execute in one second, when it executes it updates the countdown on the screen then repeats. My guess is that NSTimer doesn’t start to repeat until after it finishes executing your method so each NSTimer second is nano-fractions of a second longer than a real second.

    Apple may be one step ahead of me and invokes the repeat before the execute, however, I’m not sure.

    Either way, like I said, unless you’re doing something major other than just updating the screen each second, your users shouldn’t notice a difference at all.

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

Sidebar

Related Questions

I am implementing a countdown timer. I have a TextBlock which is showing the
when implementing a recursive function during development, i will use a counter and exit
Implementing a custom VM and I've come to use registers (these will store pointers
As per the Google design patterns I have been implementing the dashboard layout by
implementing this on MATLAB for my project. I have a circle divided up to
implementing publishActivity in PHP using the REST API using this code: $activity = array(
Implementing a simple Login screen using JSF and Spring and Hibernate. I have written
When implementing the Strategy Pattern, where does one put the code that determines which
Implementing Interface just provide the skeleton of the method. If we know the exact
Implementing a low pass FIR filter, when should one use FFT and IFFT instead

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.