mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-07-17 13:06:17 +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>
|
#include <arpa/inet.h>
|
||||||
#endif
|
#endif
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <sys/time.h>
|
|
||||||
|
|
||||||
#include <MovingMinMaxAvg.h> // for MovingMinMaxAvg
|
#include <MovingMinMaxAvg.h> // for MovingMinMaxAvg
|
||||||
|
#include <SharedUtil.h> // for usecTimestampNow
|
||||||
|
|
||||||
void runSend(const char* addressOption, int port, int gap, int size);
|
void runSend(const char* addressOption, int port, int gap, int size);
|
||||||
void runReceive(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[]) {
|
int main(int argc, const char * argv[]) {
|
||||||
if (argc != 6) {
|
if (argc != 6) {
|
||||||
printf("usage: jitter-tests <--send|--receive> <address> <port> <gap in ms> <packet size>\n");
|
printf("usage: jitter-tests <--send|--receive> <address> <port> <gap in ms> <packet size>\n");
|
||||||
|
|
Loading…
Reference in a new issue