I need a timer

Apprentice
Posts: 5
Joined: 2008.08
Post: #1
Hello there, I need a timer so I can calculate the position of a particle every 20ms or so, what do you guys use for this?
Quote this message in a reply
Moderator
Posts: 1,560
Joined: 2003.10
Post: #2
Depends on the API you're using. For example, if you're in Cocoa, you'll likely want to use NSTimer.

This also may be of interest: http://www.sacredsoftware.net/tutorials/...tion.xhtml
Quote this message in a reply
Apprentice
Posts: 5
Joined: 2008.08
Post: #3
Oh yes I forgot, I'm using Cocoa

EDIT: thanks, problem solved with NSTimer Smile
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Game Timer larswik 10 5,188 Dec 4, 2012 03:35 PM
Last Post: AnotherJake
  Back to timer/update issue Talyn 2 2,501 Oct 21, 2008 11:50 PM
Last Post: Talyn