Getting a tick count in Mac OS X

Member
Posts: 65
Joined: 2009.01
Post: #1
I am porting a simple C++ game from Windows to Mac OS X for teaching purposes. I need to know how to get a tick count from Mac OS X (Unix) for the main loop.
I know how to do this in Cocoa and Carbon, but I want to keep it as simple as possible for the students, since the focus is on C++ not the API's.
Any suggestions.
Quote this message in a reply
DoG
Moderator
Posts: 869
Joined: 2003.01
Post: #2
Tick count is a bad enough at measuring time on windows.

If you want to stick to POSIX, try time().
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Tick count NelsonMandella 3 3,617 Jul 28, 2009 05:53 PM
Last Post: Frogblast