Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • what exactly is your question? Commented Jul 1, 2014 at 8:07
  • If you're trying to produce a reliable clock based on sleep() then you're attacking the problem from the wrong direction. Use sleep(), but on each tick measure the time elapsed from your start time and update your clock according to the time passed. Commented Jul 1, 2014 at 8:08
  • My question is in the end of the post. If my approach is wrong or if there's a better? Because my results are contrary to what my research on this topic suggests. Commented Jul 1, 2014 at 8:09