Home
last modified time | relevance | path

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

12345

/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.c103 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 Dtool_util.c40 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 Dtool_cb_rea.c58 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 Dtool_progress.c161 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 Dtool_cb_prg.c136 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 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.c242 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 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
82 struct curltime now; variable
149 timeout = Curl_timeleft(testdata, &now, run[i].connecting);
/curl/tests/server/
H A Dutil.c91 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 Dnghttpx.py110 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 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 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 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 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);
93 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 24 milliseconds

12345