Home
last modified time | relevance | path

Searched refs:now (Results 1 – 25 of 114) sorted by relevance

12345

/curl/src/
H A Dtool_util.c39 struct timeval now; in tvnow() local
61 return now; in tvnow()
75 struct timeval now; in tvnow() local
92 now.tv_usec = 0; in tvnow()
95 return now; in tvnow()
107 struct timeval now; in tvnow() local
109 return now; in tvnow()
119 struct timeval now; in tvnow() local
120 now.tv_sec = time(NULL); in tvnow()
121 now.tv_usec = 0; in tvnow()
[all …]
H A Dtool_cb_rea.c60 struct timeval now = tvnow(); in tool_read_cb() local
61 long msdelta = tvdiff(now, per->start); in tool_read_cb()
136 struct timeval now = tvnow(); in tool_readbusy_cb() local
140 rate -= rate/4 - tvdiff(now, prev)/4; in tool_readbusy_cb()
141 prev = now; in tool_readbusy_cb()
H A Dtool_progress.c163 struct timeval now; in progress_meter() local
169 now = tvnow(); in progress_meter()
170 diff = tvdiff(now, stamp); in progress_meter()
183 curl_off_t spent = tvdiff(now, *start)/1000; in progress_meter()
194 stamp = now; in progress_meter()
234 speedstore[i].stamp = now; in progress_meter()
248 deltams = tvdiff(now, speedstore[speedindex].stamp); in progress_meter()
254 deltams = tvdiff(now, *start); in progress_meter()
/curl/tests/libtest/
H A Dtestutil.c38 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 Dtesttrace.c105 struct tm *now; in libtest_debug_cb() local
112 now = localtime(&secs); /* not thread safe but we don't care */ in libtest_debug_cb()
114 now->tm_hour, now->tm_min, now->tm_sec, (long)tv.tv_usec); in libtest_debug_cb()
/curl/lib/
H A Dtimeval.c35 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 Dpsl.c51 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 Dspeedcheck.c42 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 Dprogress.c244 struct curltime now = Curl_now(); in Curl_pgrsTime() local
246 Curl_pgrsTimeWas(data, timer, now); in Curl_pgrsTime()
247 return now; in Curl_pgrsTime()
315 actual = Curl_timediff_ceil(now, start); in Curl_pgrsLimitWaitTime()
343 data->progress.dl_limit_start = now; in Curl_ratelimit()
350 data->progress.ul_limit_start = now; in Curl_ratelimit()
409 p->timespent = Curl_timediff_us(now, p->start); in progress_calc()
414 if(p->lastshow != now.tv_sec) { in progress_calc()
417 p->lastshow = now.tv_sec; in progress_calc()
425 p->speeder_time [ nowindex ] = now; in progress_calc()
[all …]
H A Dprogress.h55 void Curl_ratelimit(struct Curl_easy *data, struct curltime now);
63 struct curltime now);
/curl/tests/unit/
H A Dunit1606.c56 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 Dunit1399.c85 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 Dunit1303.c56 #define NOW(x,y) now.tv_sec = x; now.tv_usec = y
81 struct curltime now; variable
148 timeout = Curl_timeleft(data, &now, run[i].connecting);
/curl/tests/server/
H A Dutil.c94 struct tm *now; in logmsg() local
114 (int)now->tm_hour, (int)now->tm_min, (int)now->tm_sec, in logmsg()
383 struct timeval now; in tvnow() local
391 return now; in tvnow()
405 struct timeval now; in tvnow() local
422 now.tv_usec = 0; in tvnow()
425 return now; in tvnow()
437 struct timeval now; in tvnow() local
439 return now; in tvnow()
451 now.tv_usec = 0; in tvnow()
[all …]
/curl/tests/http/testenv/
H A Dnghttpx.py106 end_wait = datetime.now() + timeout
110 while datetime.now() < end_wait:
119 if datetime.now() >= end_wait:
129 try_until = datetime.now() + timeout
130 while datetime.now() < try_until:
144 try_until = datetime.now() + timeout
145 while datetime.now() < try_until:
238 try_until = datetime.now() + timeout
239 while datetime.now() < try_until:
251 try_until = datetime.now() + timeout
[all …]
H A Dvsftpd.py134 try_until = datetime.now() + timeout
135 while datetime.now() < try_until:
147 try_until = datetime.now() + timeout
148 while datetime.now() < try_until:
169 start = datetime.now()
171 duration=datetime.now() - start)
/curl/tests/data/
H A Dtest33019 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 Dtest23320 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 Dtest31720 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 Dtest31820 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 Dtest23422 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 Dtest108729 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 Ddelta95 $now=`date +%s`;
96 $elapsed=$now - $tagged; # number of seconds since tag
97 $total=$now - `date -d 19980320 +%s`;
/curl/tests/
H A Dserverhelp.pm75 my $now;
81 $now = sprintf("%02d:%02d:%02d.%06d ", $hour, $min, $sec, $usec);
87 $now = sprintf("%02d:%02d:%02d ", $hour, $min, $sec);
90 print $logfilefh $now;
/curl/packages/OS400/rpg-examples/
H A DSMTPSRCMBR184 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 + ' ' +

Completed in 66 milliseconds

12345