Home
last modified time | relevance | path

Searched refs:tv_sec (Results 1 – 25 of 68) sorted by relevance

123

/PHP-7.1/sapi/fpm/fpm/
H A Dfpm_config.h19 # define timerisset(tvp) ((tvp)->tv_sec || (tvp)->tv_usec)
23 # define timerclear(tvp) ((tvp)->tv_sec = (tvp)->tv_usec = 0)
29 (vvp)->tv_sec = (tvp)->tv_sec - (uvp)->tv_sec; \
32 (vvp)->tv_sec--; \
41 (result)->tv_sec = (a)->tv_sec + (b)->tv_sec; \
45 ++(result)->tv_sec; \
54 (((a)->tv_sec == (b)->tv_sec) ? \
56 ((a)->tv_sec CMP (b)->tv_sec))
H A Dfpm_clock.c43 tv->tv_sec = ts.tv_sec; in fpm_clock_get()
99 tv->tv_sec = aTime.tv_sec; in fpm_clock_get()
H A Dfpm_request.c239 if (child->slow_logged.tv_sec) { in fpm_request_check_timed_out()
240 …if (child->slow_logged.tv_sec != proc.accepted.tv_sec || child->slow_logged.tv_usec != proc.accept… in fpm_request_check_timed_out()
241 child->slow_logged.tv_sec = 0; in fpm_request_check_timed_out()
254 if (child->slow_logged.tv_sec == 0 && slowlog_timeout && in fpm_request_check_timed_out()
255 proc.request_stage == FPM_REQUEST_EXECUTING && tv.tv_sec >= slowlog_timeout) { in fpm_request_check_timed_out()
267 (int) tv.tv_sec, (int) tv.tv_usec); in fpm_request_check_timed_out()
271 if (terminate_timeout && tv.tv_sec >= terminate_timeout) { in fpm_request_check_timed_out()
278 (int) tv.tv_sec, (int) tv.tv_usec); in fpm_request_check_timed_out()
H A Dfpm_log.c197 … len, "%.2f", tms_total / fpm_scoreboard_get_tick() / (proc.cpu_duration.tv_sec + proc.cpu_duratio… in fpm_log_write()
206 …len2 = snprintf(b, FPM_LOG_BUFFER - len, "%.3f", proc.duration.tv_sec + proc.duration.tv_usec / 10… in fpm_log_write()
212 …len2 = snprintf(b, FPM_LOG_BUFFER - len, "%.3f", proc.duration.tv_sec * 1000. + proc.duration.tv_u… in fpm_log_write()
218 …len2 = snprintf(b, FPM_LOG_BUFFER - len, "%lu", proc.duration.tv_sec * 1000000UL + proc.duration.t… in fpm_log_write()
H A Dfpm_status.c431 if (proc.cpu_duration.tv_sec == 0 && proc.cpu_duration.tv_usec == 0) { in fpm_status_handle_request()
434 …request_cpu.tms_cstime) / fpm_scoreboard_get_tick() / (proc.cpu_duration.tv_sec + proc.cpu_duratio… in fpm_status_handle_request()
450 duration.tv_sec * 1000000UL + duration.tv_usec, in fpm_status_handle_request()
H A Dfpm_children.c252 …d.%06d seconds from start", child->wp->config->name, (int) pid, buf, tv2.tv_sec, (int) tv2.tv_usec… in fpm_children_bury()
254 …er %ld.%06d seconds from start", child->wp->config->name, (int) pid, tv2.tv_sec, (int) tv2.tv_usec… in fpm_children_bury()
262 time_t now = tv1.tv_sec; in fpm_children_bury()
/PHP-7.1/ext/standard/
H A Dmicrotime.c68 RETURN_DOUBLE((double)(tp.tv_sec + tp.tv_usec / MICRO_IN_SEC)); in _php_gettimeofday()
74 offset = timelib_get_time_zone_info(tp.tv_sec, get_timezone_info()); in _php_gettimeofday()
77 add_assoc_long(return_value, "sec", tp.tv_sec); in _php_gettimeofday()
87 snprintf(ret, 100, "%.8F %ld", tp.tv_usec / MICRO_IN_SEC, tp.tv_sec); in _php_gettimeofday()
156 PHP_RUSAGE_PARA(ru_utime.tv_sec); in PHP_FUNCTION()
158 PHP_RUSAGE_PARA(ru_stime.tv_sec); in PHP_FUNCTION()
H A Dfsock.c72 tv.tv_sec = conv / 1000000; in php_fsockopen_stream()
75 tv.tv_sec = conv / 1000000; in php_fsockopen_stream()
H A Duniqid.c73 sec = (int) tv.tv_sec; in PHP_FUNCTION()
H A Dlcg.c81 LCG(s1) = tv.tv_sec ^ (tv.tv_usec<<11); in lcg_seed()
/PHP-7.1/ext/fileinfo/libmagic/
H A Dcdf_time.c138 ts->tv_sec = mktime(&tm); in cdf_timestamp_to_timespec()
139 if (ts->tv_sec == -1) { in cdf_timestamp_to_timespec()
192 p = cdf_ctime(&ts.tv_sec, buf); in main()
H A Dprint.c86 t = ts.tv_sec; in file_fmttime()
/PHP-7.1/ext/pcntl/tests/
H A Dpcntl_wait_rusage1.phpt14 var_dump($rusage['ru_utime.tv_sec']);
21 var_dump($rusage['ru_utime.tv_sec']);
H A Dpcntl_waitpid_rusage1.phpt14 var_dump($rusage['ru_utime.tv_sec']);
21 var_dump($rusage['ru_utime.tv_sec']);
/PHP-7.1/win32/
H A Dtime.c79 tv->tv_sec = (long)(ff / 1000000Ui64); in getfilesystemtime()
122 return usleep( rqtp->tv_sec * 1000000 + rqtp->tv_nsec / 1000 ); in nanosleep()
H A Dtime.h34 time_t tv_sec; /* seconds */ member
H A Dselect.c55 ms_total = tv->tv_sec * 1000; in php_select()
111 tvslice.tv_sec = 0; in php_select()
H A Dgetrusage.c36 tv->tv_sec = (zend_long) (time.QuadPart / 10000000); in usage_to_timeval()
/PHP-7.1/ext/phar/
H A Dfunc_interceptors.c673 sb.st_mtime.tv_sec = phar->max_timestamp; in phar_file_stat()
674 sb.st_atime.tv_sec = phar->max_timestamp; in phar_file_stat()
675 sb.st_ctime.tv_sec = phar->max_timestamp; in phar_file_stat()
719 sb.st_mtime.tv_sec = phar->max_timestamp; in phar_file_stat()
720 sb.st_atime.tv_sec = phar->max_timestamp; in phar_file_stat()
751 sb.st_mtime.tv_sec = data->timestamp; in phar_file_stat()
752 sb.st_atime.tv_sec = data->timestamp; in phar_file_stat()
753 sb.st_ctime.tv_sec = data->timestamp; in phar_file_stat()
768 sb.st_mtime.tv_sec = data->timestamp; in phar_file_stat()
769 sb.st_atime.tv_sec = data->timestamp; in phar_file_stat()
[all …]
H A Dstream.c495 ssb->sb.st_mtime.tv_sec = data->timestamp; in phar_dostat()
496 ssb->sb.st_atime.tv_sec = data->timestamp; in phar_dostat()
497 ssb->sb.st_ctime.tv_sec = data->timestamp; in phar_dostat()
509 ssb->sb.st_mtime.tv_sec = data->timestamp; in phar_dostat()
510 ssb->sb.st_atime.tv_sec = data->timestamp; in phar_dostat()
511 ssb->sb.st_ctime.tv_sec = data->timestamp; in phar_dostat()
522 ssb->sb.st_mtime.tv_sec = phar->max_timestamp; in phar_dostat()
523 ssb->sb.st_atime.tv_sec = phar->max_timestamp; in phar_dostat()
524 ssb->sb.st_ctime.tv_sec = phar->max_timestamp; in phar_dostat()
/PHP-7.1/main/
H A Dnetwork.c409 a.tv_sec--;
412 result->tv_sec = a.tv_sec - b.tv_sec;
413 if (result->tv_sec < 0L) {
414 result->tv_sec++;
815 limit_time.tv_sec += working_timeout.tv_sec;
819 limit_time.tv_sec++;
1128 sock->timeout.tv_sec = FG(default_socket_timeout);
1254 tv.tv_sec = timeout / 1000;
1255 tv.tv_usec = (timeout - (tv.tv_sec * 1000)) * 1000;
/PHP-7.1/ext/openssl/
H A Dxp_ssl.c1035 sslsock->reneg->prev_handshake = now.tv_sec; in limit_handshake_reneg()
1040 sslsock->reneg->prev_handshake = now.tv_sec; in limit_handshake_reneg()
2083 difference.tv_sec = a.tv_sec - b.tv_sec; in subtract_timeval()
2087 b.tv_sec -= 1L; in subtract_timeval()
2096 if (a.tv_sec > b.tv_sec || (a.tv_sec == b.tv_sec && a.tv_usec > b.tv_usec) ) { in compare_timeval()
2098 } else if( a.tv_sec == b.tv_sec && a.tv_usec == b.tv_usec ) { in compare_timeval()
2320 if (sslsock->s.timeout.tv_sec == -1) { in php_openssl_sockop_set_option()
2322 tv.tv_sec = (long)FG(default_socket_timeout); in php_openssl_sockop_set_option()
2324 tv.tv_sec = (time_t)FG(default_socket_timeout); in php_openssl_sockop_set_option()
2331 tv.tv_sec = value; in php_openssl_sockop_set_option()
[all …]
/PHP-7.1/ext/standard/tests/general_functions/
H A Dgetrusage_basic.phpt22 echo "User time used (seconds) " . $dat["ru_utime.tv_sec"] . "\n";
/PHP-7.1/main/streams/
H A Dxp_socket.c71 if (sock->timeout.tv_sec == -1) in php_sockop_write()
132 if (sock->timeout.tv_sec == -1) in php_sock_stream_wait_for_data()
167 …socket, buf, XP_SOCK_BUF_SIZE(count), (sock->is_blocked && sock->timeout.tv_sec != -1) ? MSG_DONTW… in php_sockop_read()
315 if (sock->timeout.tv_sec == -1) { in php_sockop_set_option()
316 tv.tv_sec = FG(default_socket_timeout); in php_sockop_set_option()
322 tv.tv_sec = value; in php_sockop_set_option()
910 sock->timeout.tv_sec = FG(default_socket_timeout); in php_stream_generic_socket_factory()
/PHP-7.1/sapi/fpm/fpm/events/
H A Dselect.c97 t.tv_sec = timeout / 1000; in fpm_event_select_wait()

Completed in 71 milliseconds

123