I was wondering if anyone had any high resolution clock resources laying around? API explenation and maybe some tutorial.
Thanks.
I was wondering if anyone had any high resolution clock resources laying around? API explenation and maybe some tutorial.
Thanks.
man gettimeofday
Has a quite high resolution. Still not high enough for a MIDI timer, probably - look into ALSA for that.
All the buzzt!
CornedBee
"There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
- Flon's Law
HPET is the best you can get in terms of resolution, but your mainboard has to have the chip (newer ones does in most cases)
http://en.wikipedia.org/wiki/High_Precision_Event_Timer