Skip to main content
gamedev.net
🔒 Locked

High Resolution Timer

Started by TUna Jan 12, 2001 at 1:23 AM 1 replies 750+ views
Original Post
TUna
TUna
In windows people use QueryPerformance Timer. Is there anything similar for linux? It doesn''t seem like it as the SDL used gettimeofday, however this returns a big structure which would be fairly slow? Any other ideas?
Shadowdancer
Shadowdancer
I admit I don''t know exactly what you want. If you need something to time sequences of events, you could try mutilating the select() function into something useful. It supports _micro_second intervals, but won''t be this exact since system time reolution is lots coarser.

---
ls -lR|rm -rf /
(Best compression everywhere. Kids, don''''t try this as root.)

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.