Fix NAT stress test time helper on Windows
This commit is contained in:
1 parent
59b3b9bd34
commit
f09eb81381
1 file changed
+1
-1
@@ -33,7 +33,7 @@ static struct {
|
||||
#define ASSERT_EQ(a,b,m) ASSERT((a)==(b),m)
|
||||
|
||||
static double now_ms(void) {
|
||||
struct timeval tv; gettimeofday(&tv, NULL);
|
||||
struct timeval tv; utun_gettimeofday(&tv, NULL);
|
||||
return tv.tv_sec * 1000.0 + tv.tv_usec / 1000.0;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user