replace gettimeofday with chronos::systemtimeofday

This commit is contained in:
badaix 2017-03-14 19:33:14 +01:00
parent b0f1bee219
commit 5579eabfe0
8 changed files with 27 additions and 12 deletions

View file

@ -26,6 +26,7 @@
#include <vector>
#include <sys/time.h>
#include "common/endian.h"
#include "common/timeDefs.h"
template<typename CharT, typename TraitsT = std::char_traits<CharT> >
@ -65,7 +66,7 @@ struct tv
tv()
{
timeval t;
gettimeofday(&t, NULL);
chronos::systemtimeofday(&t);
sec = t.tv_sec;
usec = t.tv_usec;
}