#include #include #include #include #include #include #include #define NTIMES 1000000 // --------------------------------------------------------------------------- void do_something(void) { } // --------------------------------------------------------------------------- int64_t microseconds(void) { struct timeval now; gettimeofday(&now, NULL); return now.tv_sec*1000000 + now.tv_usec; } int main(void) { // START OUR TIMING int64_t start = microseconds(); // DO SOMETHING THAT WILL OCCUPY THE CPU for(int t=0 ; t