00001 00008 #ifndef TIMEHELP_H 00009 #define TIMEHELP_H 00010 00011 #include <sys/time.h> 00012 00013 typedef double Seconds; 00014 00015 double elapsed_time_ms(const timeval& start); 00016 double elapsed_time_sec(const timeval& start); 00017 double time_diff_ms(const timeval& start, const timeval& end); 00018 double time_diff_sec(const timeval& start, const timeval& end); 00019 00020 00021 #endif /* TIMEHELP_H */