[solved] Pygame/SDL with high-precision event timestamps
I have a modified version of pygame 1.9.1 that in turn uses a modified version of SDL 1.2.15 that has a high-performance clock and furthermore automatically associates events with a timestamp from this clock. This is useful so that in your pygame code you don't have to constantly poll the event stack to put your own timestamps on events as they occur. Here's the source (http://goo.gl/KzKNA). The high performance clock is accessible via
and yields times with units of microseconds. The event timestamps are accessible via the timestamp attribute of a given event, as in:
Thought you guys might want to use this in opensesame.