mirror of
https://github.com/badaix/snapcast.git
synced 2025-08-04 00:59:32 +02:00
replace gettimeofday with chronos::systemtimeofday
This commit is contained in:
parent
b0f1bee219
commit
5579eabfe0
8 changed files with 27 additions and 12 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue