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

Diff of /smsdaemon/Util.cpp

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

revision 80 by torben, Sun Jun 15 18:57:00 2008 UTC revision 84 by torben, Mon Jun 16 06:12:45 2008 UTC
# Line 280  namespace Util Line 280  namespace Util
280    
281          int mTimeDiff(const timeval& then, const timeval& now)          int mTimeDiff(const timeval& then, const timeval& now)
282          {          {
283                  return uTimeDiff(then,now) / 1000;                  return ( (now.tv_sec - then.tv_sec)*1000) +
284                                    ((now.tv_usec-then.tv_usec)/1000);
285          }          }
286    
287  }  }

Legend:
Removed from v.80  
changed lines
  Added in v.84

  ViewVC Help
Powered by ViewVC 1.1.20