Currently I\'m getting the execution wall time of my program in seconds by calling:
time_t startTime = time(NULL); //section of code time_t
The open-source GLib library has a GTimer system that claims to provide microsecond accuracy. That library is available on Mac OS X, Windows, and Linux. I'm currently using it to do performance timings on Linux, and it seems to work perfectly.