/[projects]/smsdaemon/util.cpp
ViewVC logotype

Diff of /smsdaemon/util.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 88 by torben, Mon Jun 16 07:39:56 2008 UTC revision 89 by torben, Mon Jun 16 10:09:17 2008 UTC
# Line 9  Line 9 
9  #include <iconv.h>  #include <iconv.h>
10  #include <stdexcept>  #include <stdexcept>
11  #include <time.h>  #include <time.h>
12    #include <sys/time.h>
13    
14  #include "util.h"  #include "util.h"
15    
# Line 289  namespace Util Line 290  namespace Util
290                                  ((now.tv_usec-then.tv_usec)/1000);                                  ((now.tv_usec-then.tv_usec)/1000);
291          }          }
292    
293    
294            timeval GetTimeOfDay()
295            {
296                    timeval now;
297                    gettimeofday(&now,0);
298                    return now;
299            }
300    
301          int my_system(const char* cmd)          int my_system(const char* cmd)
302          {          {
303                  FILE* p;                  FILE* p;

Legend:
Removed from v.88  
changed lines
  Added in v.89

  ViewVC Help
Powered by ViewVC 1.1.20