mirror of
https://github.com/lubosz/overte.git
synced 2025-04-12 15:58:55 +02:00
use our ported version of usecTimestampNow cause windows sucks
This commit is contained in:
parent
48b73e3f0e
commit
8db66e4322
1 changed files with 1 additions and 7 deletions
|
@ -14,19 +14,13 @@
|
|||
#include <arpa/inet.h>
|
||||
#endif
|
||||
#include <stdio.h>
|
||||
#include <sys/time.h>
|
||||
|
||||
#include <MovingMinMaxAvg.h> // for MovingMinMaxAvg
|
||||
#include <SharedUtil.h> // for usecTimestampNow
|
||||
|
||||
void runSend(const char* addressOption, int port, int gap, int size);
|
||||
void runReceive(const char* addressOption, int port, int gap, int size);
|
||||
|
||||
quint64 usecTimestampNow() {
|
||||
struct timeval tv;
|
||||
gettimeofday(&tv,NULL);
|
||||
return tv.tv_sec*(uint64_t)1000000+tv.tv_usec;
|
||||
}
|
||||
|
||||
int main(int argc, const char * argv[]) {
|
||||
if (argc != 6) {
|
||||
printf("usage: jitter-tests <--send|--receive> <address> <port> <gap in ms> <packet size>\n");
|
||||
|
|
Loading…
Reference in a new issue