Hi, I have this following class which I use as a timer: #include using namespace std; class chrono { public: chrono() {}; ~chrono() {}; int start(); float freeze(); private: struct timeval before_time, after_time; struct timeval sub_chrono; }; int chrono::start() { return gettimeofday(&before_time, 0); } float chrono::freeze() { gettimeofday(&after_time, 0); timersub(&after_time, &before_time, &sub_chrono); // Possible clean up required here: Remove (float) ...