// Simple timer for benchmarks #include <time.h> #include <string> class Stopwatch { public: //start counting time Stopwatch() : start(clock()), delay(false), message(false) {} Stopwatch(bool truefalse) : start(clock()), delay(truefalse), message(false) {} ~Stopwatch(); string set_title(string s); string set_title(char * s); string get_title(); private: clock_t start; bool delay; bool message; string title; };
Hosted by www.Geocities.ws

1