/PHP-7.1/sapi/fpm/fpm/ |
H A D | fpm_config.h | 19 # 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 D | fpm_clock.c | 43 tv->tv_sec = ts.tv_sec; in fpm_clock_get() 99 tv->tv_sec = aTime.tv_sec; in fpm_clock_get()
|
H A D | fpm_request.c | 239 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 D | fpm_log.c | 197 … 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 D | fpm_status.c | 431 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 D | fpm_children.c | 252 …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 D | microtime.c | 68 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 D | fsock.c | 72 tv.tv_sec = conv / 1000000; in php_fsockopen_stream() 75 tv.tv_sec = conv / 1000000; in php_fsockopen_stream()
|
H A D | uniqid.c | 73 sec = (int) tv.tv_sec; in PHP_FUNCTION()
|
H A D | lcg.c | 81 LCG(s1) = tv.tv_sec ^ (tv.tv_usec<<11); in lcg_seed()
|
/PHP-7.1/ext/fileinfo/libmagic/ |
H A D | cdf_time.c | 138 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 D | print.c | 86 t = ts.tv_sec; in file_fmttime()
|
/PHP-7.1/ext/pcntl/tests/ |
H A D | pcntl_wait_rusage1.phpt | 14 var_dump($rusage['ru_utime.tv_sec']); 21 var_dump($rusage['ru_utime.tv_sec']);
|
H A D | pcntl_waitpid_rusage1.phpt | 14 var_dump($rusage['ru_utime.tv_sec']); 21 var_dump($rusage['ru_utime.tv_sec']);
|
/PHP-7.1/win32/ |
H A D | time.c | 79 tv->tv_sec = (long)(ff / 1000000Ui64); in getfilesystemtime() 122 return usleep( rqtp->tv_sec * 1000000 + rqtp->tv_nsec / 1000 ); in nanosleep()
|
H A D | time.h | 34 time_t tv_sec; /* seconds */ member
|
H A D | select.c | 55 ms_total = tv->tv_sec * 1000; in php_select() 111 tvslice.tv_sec = 0; in php_select()
|
H A D | getrusage.c | 36 tv->tv_sec = (zend_long) (time.QuadPart / 10000000); in usage_to_timeval()
|
/PHP-7.1/ext/phar/ |
H A D | func_interceptors.c | 673 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 D | stream.c | 495 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 D | network.c | 409 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 D | xp_ssl.c | 1035 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 D | getrusage_basic.phpt | 22 echo "User time used (seconds) " . $dat["ru_utime.tv_sec"] . "\n";
|
/PHP-7.1/main/streams/ |
H A D | xp_socket.c | 71 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 D | select.c | 97 t.tv_sec = timeout / 1000; in fpm_event_select_wait()
|