Home
last modified time | relevance | path

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

123

/php-src/sapi/fpm/fpm/
H A Dfpm_config.h18 # define timerisset(tvp) ((tvp)->tv_sec || (tvp)->tv_usec)
22 # define timerclear(tvp) ((tvp)->tv_sec = (tvp)->tv_usec = 0)
28 (vvp)->tv_sec = (tvp)->tv_sec - (uvp)->tv_sec; \
31 (vvp)->tv_sec--; \
40 (result)->tv_sec = (a)->tv_sec + (b)->tv_sec; \
44 ++(result)->tv_sec; \
53 (((a)->tv_sec == (b)->tv_sec) ? \
55 ((a)->tv_sec CMP (b)->tv_sec))
H A Dfpm_clock.c41 tv->tv_sec = ts.tv_sec; in fpm_clock_get()
96 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_status.c107 if (procs[i].cpu_duration.tv_sec == 0 && procs[i].cpu_duration.tv_usec == 0) { in fpm_status_export_to_zval()
110 …est_cpu.tms_cstime) / fpm_scoreboard_get_tick() / (procs[i].cpu_duration.tv_sec + procs[i].cpu_dur… in fpm_status_export_to_zval()
124 …add_assoc_long(&fpm_proc_stat, "request-duration", duration.tv_sec * 1000000UL + duration.tv_usec); in fpm_status_export_to_zval()
593 if (proc->cpu_duration.tv_sec == 0 && proc->cpu_duration.tv_usec == 0) { in fpm_status_handle_request()
596 …equest_cpu.tms_cstime) / fpm_scoreboard_get_tick() / (proc->cpu_duration.tv_sec + proc->cpu_durati… in fpm_status_handle_request()
611 duration.tv_sec * 1000000UL + duration.tv_usec, in fpm_status_handle_request()
H A Dfpm_log.c210 … len, "%.2f", tms_total / fpm_scoreboard_get_tick() / (proc.cpu_duration.tv_sec + proc.cpu_duratio… in fpm_log_write()
219 …len2 = snprintf(b, FPM_LOG_BUFFER - len, "%.3f", proc.duration.tv_sec + proc.duration.tv_usec / 10… in fpm_log_write()
228 …len2 = snprintf(b, FPM_LOG_BUFFER - len, "%.3f", proc.duration.tv_sec * 1000. + proc.duration.tv_u… in fpm_log_write()
234 …len2 = snprintf(b, FPM_LOG_BUFFER - len, "%lu", (unsigned long)(proc.duration.tv_sec * 1000000UL +… in fpm_log_write()
H A Dfpm_events.c415 timeout = (tmp.tv_sec * 1000) + (tmp.tv_usec / 1000) + 1; in fpm_event_loop()
521 tmp.tv_sec = frequency / 1000; in fpm_event_add()
524 tmp.tv_sec = 0; in fpm_event_add()
/php-src/ext/standard/
H A Duniqid.c63 } while (tv.tv_sec == prev_tv.tv_sec && tv.tv_usec == prev_tv.tv_usec); in PHP_FUNCTION()
65 prev_tv.tv_sec = tv.tv_sec; in PHP_FUNCTION()
68 sec = (int) tv.tv_sec; in PHP_FUNCTION()
H A Dmicrotime.c61 RETURN_DOUBLE((double)(tp.tv_sec + tp.tv_usec / MICRO_IN_SEC)); in _php_gettimeofday()
67 offset = timelib_get_time_zone_info(tp.tv_sec, get_timezone_info()); in _php_gettimeofday()
70 add_assoc_long(return_value, "sec", tp.tv_sec); in _php_gettimeofday()
78 RETURN_NEW_STR(zend_strpprintf(0, "%.8F %ld", tp.tv_usec / MICRO_IN_SEC, (long)tp.tv_sec)); in _php_gettimeofday()
144 PHP_RUSAGE_PARA(ru_utime.tv_sec); in PHP_FUNCTION()
146 PHP_RUSAGE_PARA(ru_stime.tv_sec); in PHP_FUNCTION()
H A Dfsock.c90 tv.tv_sec = conv / 1000000; in php_fsockopen_stream()
93 tv.tv_sec = conv / 1000000; in php_fsockopen_stream()
/php-src/win32/
H A Dtime.c46 tv->tv_sec = (long)(ff / 1000000Ui64); in getfilesystemtime()
87 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.c54 ms_total = tv->tv_sec * 1000; in php_select()
110 tvslice.tv_sec = 0; in php_select()
H A Dgetrusage.c34 tv->tv_sec = (zend_long) (time.QuadPart / 10000000); in usage_to_timeval()
/php-src/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-src/Zend/
H A Dzend_hrtime.h88 struct timespec ts = { .tv_sec = 0, .tv_nsec = 0 }; in zend_hrtime()
90 return ((zend_hrtime_t) ts.tv_sec * (zend_hrtime_t)ZEND_NANO_IN_SEC) + ts.tv_nsec; in zend_hrtime()
H A Dzend_max_execution_timer.c105 its.it_value.tv_sec = seconds; in zend_max_execution_timer_settime()
106 its.it_value.tv_nsec = its.it_interval.tv_sec = its.it_interval.tv_nsec = 0; in zend_max_execution_timer_settime()
/php-src/ext/fileinfo/libmagic/
H A Dcdf_time.c137 ts->tv_sec = mktime(&tm); in cdf_timestamp_to_timespec()
138 if (ts->tv_sec == -1) { in cdf_timestamp_to_timespec()
196 p = cdf_ctime(&ts.tv_sec, buf); in main()
/php-src/main/
H A Dnetwork.c398 a.tv_sec--;
401 result->tv_sec = a.tv_sec - b.tv_sec;
402 if (result->tv_sec < 0L) {
403 result->tv_sec++;
801 limit_time.tv_sec += working_timeout.tv_sec;
805 limit_time.tv_sec++;
1079 sock->timeout.tv_sec = FG(default_socket_timeout);
1214 tv.tv_sec = timeout / 1000;
1215 tv.tv_usec = (timeout - (tv.tv_sec * 1000)) * 1000;
H A Dphp_network.h163 if (timeouttv && timeouttv->tv_sec >= 0 && timeouttv->tv_sec <= ((INT_MAX - 1000) / 1000)) { in php_tvtoto()
164 return (timeouttv->tv_sec * 1000) + (timeouttv->tv_usec / 1000); in php_tvtoto()
/php-src/ext/openssl/
H A Dxp_ssl.c1133 sslsock->reneg->prev_handshake = now.tv_sec; in php_openssl_limit_handshake_reneg()
1936 …has_timeout = !sslsock->s.is_blocked && (timeout->tv_sec > 0 || (timeout->tv_sec == 0 && timeout->… in php_openssl_enable_crypto()
2070 …if (!sslsock->s.is_blocked && timeout && (timeout->tv_sec > 0 || (timeout->tv_sec == 0 && timeout-… in php_openssl_sockop_io()
2211 difference.tv_sec = a.tv_sec - b.tv_sec; in php_openssl_subtract_timeval()
2215 difference.tv_sec -= 1L; in php_openssl_subtract_timeval()
2225 if (a.tv_sec > b.tv_sec || (a.tv_sec == b.tv_sec && a.tv_usec > b.tv_usec) ) { in php_openssl_compare_timeval()
2227 } else if( a.tv_sec == b.tv_sec && a.tv_usec == b.tv_usec ) { in php_openssl_compare_timeval()
2454 if (sslsock->s.timeout.tv_sec == -1) { in php_openssl_sockop_set_option()
2465 tv.tv_sec = value; in php_openssl_sockop_set_option()
2498 …if (!sslsock->s.is_blocked && timeout && (timeout->tv_sec > 0 || (timeout->tv_sec == 0 && timeout-… in php_openssl_sockop_set_option()
[all …]
/php-src/main/streams/
H A Dxp_socket.c67 if (sock->timeout.tv_sec == -1) in php_sockop_write()
136 zero_timeout.tv_sec = 0; in php_sock_stream_wait_for_data()
139 } else if (sock->timeout.tv_sec == -1) { in php_sock_stream_wait_for_data()
174 (sock->timeout.tv_sec == 0 && sock->timeout.tv_usec == 0); in php_sockop_read()
177 if (dont_wait || sock->timeout.tv_sec != -1) { in php_sockop_read()
349 if (sock->timeout.tv_sec == -1) { in php_sockop_set_option()
350 tv.tv_sec = FG(default_socket_timeout); in php_sockop_set_option()
356 tv.tv_sec = value; in php_sockop_set_option()
964 sock->timeout.tv_sec = FG(default_socket_timeout); in php_stream_generic_socket_factory()
/php-src/ext/standard/tests/general_functions/
H A Dgetrusage_basic.phpt16 echo "User time used (seconds) " . $dat["ru_utime.tv_sec"] . "\n";
/php-src/sapi/fpm/fpm/events/
H A Dselect.c92 t.tv_sec = timeout / 1000; in fpm_event_select_wait()
H A Dport.c119 t.tv_sec = (int)(timeout / 1000); in fpm_event_port_wait()

Completed in 48 milliseconds

123