use our ported version of usecTimestampNow cause windows sucks

This commit is contained in:
ZappoMan 2014-08-01 13:58:38 -07:00
parent 48b73e3f0e
commit 8db66e4322

View file

@ -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");