I'm porting a library from Windows to *NIX (currently OSX), does anyone now what function can I use instead of Microsoft's QueryPerformanceCounter and QueryPerformanceFrequency?
See Question&Answers more detail:osI'm porting a library from Windows to *NIX (currently OSX), does anyone now what function can I use instead of Microsoft's QueryPerformanceCounter and QueryPerformanceFrequency?
See Question&Answers more detail:osOn OSX mach_absolute_time
and mach_timebase_info
are the best equivalents to Win32 QueryPerformance* functions.
See http://developer.apple.com/library/mac/#qa/qa1398/_index.html