/curl/tests/libtest/ |
H A D | testutil.c | 38 struct timeval now; in tutil_tvnow() local 42 return now; in tutil_tvnow() 56 struct timeval now; in tutil_tvnow() local 73 now.tv_usec = 0; in tutil_tvnow() 76 return now; in tutil_tvnow() 88 struct timeval now; in tutil_tvnow() local 90 return now; in tutil_tvnow() 100 struct timeval now; in tutil_tvnow() local 101 now.tv_sec = time(NULL); in tutil_tvnow() 102 now.tv_usec = 0; in tutil_tvnow() [all …]
|
H A D | testtrace.c | 103 struct tm *now; in libtest_debug_cb() local 110 now = localtime(&secs); /* not thread safe but we don't care */ in libtest_debug_cb() 112 now->tm_hour, now->tm_min, now->tm_sec, (long)tv.tv_usec); in libtest_debug_cb()
|
/curl/src/ |
H A D | tool_util.c | 40 struct timeval now; in tvnow() local 62 return now; in tvnow() 76 struct timeval now; in tvnow() local 93 now.tv_usec = 0; in tvnow() 96 return now; in tvnow() 108 struct timeval now; in tvnow() local 110 return now; in tvnow() 120 struct timeval now; in tvnow() local 121 now.tv_sec = time(NULL); in tvnow() 122 now.tv_usec = 0; in tvnow() [all …]
|
H A D | tool_cb_rea.c | 58 struct timeval now = tvnow(); in tool_read_cb() local 59 long msdelta = tvdiff(now, per->start); in tool_read_cb() 134 struct timeval now = tvnow(); in tool_readbusy_cb() local 138 rate -= rate/4 - tvdiff(now, prev)/4; in tool_readbusy_cb() 139 prev = now; in tool_readbusy_cb()
|
H A D | tool_progress.c | 161 struct timeval now; in progress_meter() local 167 now = tvnow(); in progress_meter() 168 diff = tvdiff(now, stamp); in progress_meter() 181 curl_off_t spent = tvdiff(now, *start)/1000; in progress_meter() 192 stamp = now; in progress_meter() 232 speedstore[i].stamp = now; in progress_meter() 246 deltams = tvdiff(now, speedstore[speedindex].stamp); in progress_meter() 252 deltams = tvdiff(now, *start); in progress_meter()
|
H A D | tool_cb_prg.c | 136 struct timeval now = tvnow(); in tool_progress_cb() local 176 else if((tvdiff(now, bar->prevtime) < 100L) && point < total) in tool_progress_cb() 182 if(tvdiff(now, bar->prevtime) < 100L) in tool_progress_cb() 225 bar->prevtime = now; in tool_progress_cb()
|
/curl/lib/ |
H A D | timeval.c | 35 struct curltime now; in Curl_now() local 57 return now; in Curl_now() 73 struct timeval now; in Curl_now() local 120 cnow.tv_sec = now.tv_sec; in Curl_now() 172 struct timeval now; in Curl_now() local 174 (void)gettimeofday(&now, NULL); in Curl_now() 175 ret.tv_sec = now.tv_sec; in Curl_now() 187 struct curltime now; in Curl_now() local 188 now.tv_sec = time(NULL); in Curl_now() 189 now.tv_usec = 0; in Curl_now() [all …]
|
H A D | psl.c | 51 struct curltime now = Curl_now(); in now_seconds() local 53 return now.tv_sec; in now_seconds() 60 time_t now; in Curl_psl_use() local 66 now = now_seconds(); in Curl_psl_use() 67 if(!pslcache->psl || pslcache->expires <= now) { in Curl_psl_use() 75 now = now_seconds(); in Curl_psl_use() 76 if(!pslcache->psl || pslcache->expires <= now) { in Curl_psl_use() 84 expires = now < TIME_T_MAX - PSL_TTL ? now + PSL_TTL : TIME_T_MAX; in Curl_psl_use()
|
H A D | speedcheck.c | 42 struct curltime now) in Curl_speedcheck() argument 52 data->state.keeps_speed = now; in Curl_speedcheck() 55 timediff_t howlong = Curl_timediff(now, data->state.keeps_speed); in Curl_speedcheck()
|
H A D | progress.c | 242 struct curltime now = Curl_now(); in Curl_pgrsTime() local 244 Curl_pgrsTimeWas(data, timer, now); in Curl_pgrsTime() 245 return now; in Curl_pgrsTime() 339 data->progress.dl.limit.start = now; in Curl_ratelimit() 346 data->progress.ul.limit.start = now; in Curl_ratelimit() 410 p->timespent = Curl_timediff_us(now, p->start); in progress_calc() 415 if(p->lastshow != now.tv_sec) { in progress_calc() 418 p->lastshow = now.tv_sec; in progress_calc() 426 p->speeder_time [ nowindex ] = now; in progress_calc() 631 bool showprogress = progress_calc(data, now); in Curl_pgrsUpdate() [all …]
|
H A D | progress.h | 55 void Curl_ratelimit(struct Curl_easy *data, struct curltime now); 63 struct curltime now);
|
/curl/tests/unit/ |
H A D | unit1606.c | 56 struct curltime now = {1, 0}; in runawhile() local 67 result = Curl_speedcheck(easy, now); in runawhile() 71 now.tv_sec = ++counter; in runawhile() 75 finaltime = (int)(now.tv_sec - 1); in runawhile()
|
H A D | unit1399.c | 85 struct curltime now = Curl_now(); variable 93 data.progress.start.tv_sec = now.tv_sec - 2; 94 data.progress.start.tv_usec = now.tv_usec; 95 fake_t_startsingle_time(&data, now, -2); 107 fake_t_startsingle_time(&data, now, -1);
|
H A D | unit1303.c | 56 #define NOW(x,y) now.tv_sec = x; now.tv_usec = y 82 struct curltime now; variable 149 timeout = Curl_timeleft(testdata, &now, run[i].connecting);
|
/curl/tests/server/ |
H A D | util.c | 91 struct tm *now; in logmsg() local 111 (int)now->tm_hour, (int)now->tm_min, (int)now->tm_sec, in logmsg() 382 struct timeval now; in tvnow() local 390 return now; in tvnow() 404 struct timeval now; in tvnow() local 421 now.tv_usec = 0; in tvnow() 424 return now; in tvnow() 436 struct timeval now; in tvnow() local 438 return now; in tvnow() 450 now.tv_usec = 0; in tvnow() [all …]
|
/curl/tests/http/testenv/ |
H A D | nghttpx.py | 110 end_wait = datetime.now() + timeout 114 while datetime.now() < end_wait: 123 if datetime.now() >= end_wait: 133 try_until = datetime.now() + timeout 134 while datetime.now() < try_until: 156 try_until = datetime.now() + timeout 157 while datetime.now() < try_until: 264 try_until = datetime.now() + timeout 265 while datetime.now() < try_until: 277 try_until = datetime.now() + timeout [all …]
|
/curl/tests/data/ |
H A D | test330 | 19 Location: http://goto.second.host.now/%TESTNUMBER0002 42 Location: http://goto.second.host.now/%TESTNUMBER0002 85 GET http://goto.second.host.now/%TESTNUMBER0002 HTTP/1.1 86 Host: goto.second.host.now
|
H A D | test233 | 20 Location: http://goto.second.host.now/%TESTNUMBER0002 43 Location: http://goto.second.host.now/%TESTNUMBER0002 87 GET http://goto.second.host.now/%TESTNUMBER0002 HTTP/1.1 88 Host: goto.second.host.now
|
H A D | test318 | 20 Location: http://goto.second.host.now/%TESTNUMBER0002 43 Location: http://goto.second.host.now/%TESTNUMBER0002 87 GET http://goto.second.host.now/%TESTNUMBER0002 HTTP/1.1 88 Host: goto.second.host.now
|
H A D | test317 | 20 Location: http://goto.second.host.now/%TESTNUMBER0002 43 Location: http://goto.second.host.now/%TESTNUMBER0002 87 GET http://goto.second.host.now/%TESTNUMBER0002 HTTP/1.1 88 Host: goto.second.host.now
|
H A D | test234 | 22 Location: http://goto.second.host.now/%TESTNUMBER0002 45 Location: http://goto.second.host.now/%TESTNUMBER0002 89 GET http://goto.second.host.now/%TESTNUMBER0002 HTTP/1.1 90 Host: goto.second.host.now
|
H A D | test1087 | 29 Location: http://goto.second.host.now/%TESTNUMBER1002 56 Location: http://goto.second.host.now/%TESTNUMBER1002 105 GET http://goto.second.host.now/%TESTNUMBER1002 HTTP/1.1 106 Host: goto.second.host.now
|
/curl/scripts/ |
H A D | delta | 95 $now=`date +%s`; 96 $elapsed=$now - $tagged; # number of seconds since tag 97 $total=$now - `date -d 19980320 +%s`;
|
/curl/tests/ |
H A D | serverhelp.pm | 75 my $now; 81 $now = sprintf("%02d:%02d:%02d.%06d ", $hour, $min, $sec, $usec); 87 $now = sprintf("%02d:%02d:%02d ", $hour, $min, $sec); 93 print $logfilefh $now;
|
/curl/packages/OS400/rpg-examples/ |
H A D | SMTPSRCMBR | 184 d now ds qualified 205 now.ts = %timestamp(*SYS); 208 weekday = %rem(%diff(now.ts: %timestamp('2001-01-01-00.00.00.000000'): 211 %char(now.day) + ' ' + 213 3 * now.month - 2: 3) + ' ' + 214 %char(now.year) + ' ' + 215 %char(now.hour) + ':' + now.minute + ':' + now.second + ' ' +
|