--- smsdaemon/util.cpp 2008/06/16 09:04:05 88 +++ smsdaemon/util.cpp 2008/06/16 10:09:17 89 @@ -9,6 +9,7 @@ #include #include #include +#include #include "util.h" @@ -289,6 +290,14 @@ ((now.tv_usec-then.tv_usec)/1000); } + + timeval GetTimeOfDay() + { + timeval now; + gettimeofday(&now,0); + return now; + } + int my_system(const char* cmd) { FILE* p;