aboutsummaryrefslogtreecommitdiff
path: root/tests/libtest
diff options
context:
space:
mode:
authorSergei Nikulov <sergey.nikulov@gmail.com>2013-06-12 02:04:03 +0400
committerDaniel Stenberg <daniel@haxx.se>2013-06-12 10:52:23 +0200
commit9e10963c207b43e57d0898b924f9e661385db40f (patch)
treee891ced962f18685a180996605a71954ab3fd79b /tests/libtest
parent10b6d81c648f5ee49405a031e6a609802c1609d6 (diff)
lib1900: use tutil_tvnow instead of gettimeofday
Makes it build on windows
Diffstat (limited to 'tests/libtest')
-rw-r--r--tests/libtest/lib1900.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/libtest/lib1900.c b/tests/libtest/lib1900.c
index 7bee97a21..74a0e6f58 100644
--- a/tests/libtest/lib1900.c
+++ b/tests/libtest/lib1900.c
@@ -168,7 +168,7 @@ int test(char *URL)
multi_setopt(m, CURLMOPT_PIPELINING_SITE_BL, site_blacklist);
multi_setopt(m, CURLMOPT_PIPELINING_SERVER_BL, server_blacklist);
- gettimeofday(&last_handle_add, NULL);
+ last_handle_add = tutil_tvnow();
for(;;) {
struct timeval interval;
@@ -182,7 +182,7 @@ int test(char *URL)
interval.tv_usec = 0;
if(handlenum < num_handles) {
- gettimeofday(&now, NULL);
+ now = tutil_tvnow();
msnow = now.tv_sec * 1000 + now.tv_usec / 1000;
mslast = last_handle_add.tv_sec * 1000 + last_handle_add.tv_usec / 1000;
if(msnow - mslast >= urltime[handlenum] && handlenum < num_handles) {