Home
last modified time | relevance | path

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

123

/PHP-5.4/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.c44 tv->tv_sec = ts.tv_sec; in fpm_clock_get()
100 tv->tv_sec = aTime.tv_sec; in fpm_clock_get()
H A Dfpm_request.c244 if (child->slow_logged.tv_sec) { in fpm_request_check_timed_out()
245 …if (child->slow_logged.tv_sec != proc.accepted.tv_sec || child->slow_logged.tv_usec != proc.accept… in fpm_request_check_timed_out()
246 child->slow_logged.tv_sec = 0; in fpm_request_check_timed_out()
259 if (child->slow_logged.tv_sec == 0 && slowlog_timeout && in fpm_request_check_timed_out()
260 proc.request_stage == FPM_REQUEST_EXECUTING && tv.tv_sec >= slowlog_timeout) { in fpm_request_check_timed_out()
271 (int) tv.tv_sec, (int) tv.tv_usec); in fpm_request_check_timed_out()
275 if (terminate_timeout && tv.tv_sec >= terminate_timeout) { in fpm_request_check_timed_out()
281 (int) tv.tv_sec, (int) tv.tv_usec); in fpm_request_check_timed_out()
H A Dfpm_log.c196 … len, "%.2f", tms_total / fpm_scoreboard_get_tick() / (proc.cpu_duration.tv_sec + proc.cpu_duratio… in fpm_log_write()
205 …len2 = snprintf(b, FPM_LOG_BUFFER - len, "%.3f", proc.duration.tv_sec + proc.duration.tv_usec / 10… in fpm_log_write()
211 …len2 = snprintf(b, FPM_LOG_BUFFER - len, "%.3f", proc.duration.tv_sec * 1000. + proc.duration.tv_u… in fpm_log_write()
217 …len2 = snprintf(b, FPM_LOG_BUFFER - len, "%lu", proc.duration.tv_sec * 1000000UL + proc.duration.t… in fpm_log_write()
H A Dfpm_status.c427 if (proc.cpu_duration.tv_sec == 0 && proc.cpu_duration.tv_usec == 0) { in fpm_status_handle_request()
430 …request_cpu.tms_cstime) / fpm_scoreboard_get_tick() / (proc.cpu_duration.tv_sec + proc.cpu_duratio… in fpm_status_handle_request()
446 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()
H A Dfpm_events.c408 timeout = (tmp.tv_sec * 1000) + (tmp.tv_usec / 1000) + 1; in fpm_event_loop()
510 tmp.tv_sec = frequency / 1000; in fpm_event_add()
513 tmp.tv_sec = 0; in fpm_event_add()
/PHP-5.4/ext/standard/
H A Dmicrotime.c67 RETURN_DOUBLE((double)(tp.tv_sec + tp.tv_usec / MICRO_IN_SEC)); in _php_gettimeofday()
73 offset = timelib_get_time_zone_info(tp.tv_sec, get_timezone_info(TSRMLS_C)); in _php_gettimeofday()
76 add_assoc_long(return_value, "sec", tp.tv_sec); in _php_gettimeofday()
86 snprintf(ret, 100, "%.8F %ld", tp.tv_usec / MICRO_IN_SEC, tp.tv_sec); in _php_gettimeofday()
150 PHP_RUSAGE_PARA(ru_utime.tv_sec); in PHP_FUNCTION()
152 PHP_RUSAGE_PARA(ru_stime.tv_sec); in PHP_FUNCTION()
H A Duniqid.c72 sec = (int) tv.tv_sec; in PHP_FUNCTION()
H A Dlcg.c81 LCG(s1) = tv.tv_sec ^ (tv.tv_usec<<11); in lcg_seed()
H A Dfsock.c67 tv.tv_sec = conv / 1000000; in php_fsockopen_stream()
/PHP-5.4/ext/openssl/
H A Dxp_ssl.c485 elapsed_time.tv_sec = cur_time.tv_sec - start_time.tv_sec; in php_openssl_enable_crypto()
488 elapsed_time.tv_sec -= 1L; in php_openssl_enable_crypto()
492 if (elapsed_time.tv_sec > timeout->tv_sec || in php_openssl_enable_crypto()
493 (elapsed_time.tv_sec == timeout->tv_sec && in php_openssl_enable_crypto()
510 left_time.tv_sec = timeout->tv_sec - elapsed_time.tv_sec; in php_openssl_enable_crypto()
513 left_time.tv_sec -= 1L; in php_openssl_enable_crypto()
704 if (sslsock->s.timeout.tv_sec == -1) { in php_openssl_sockop_set_option()
705 tv.tv_sec = FG(default_socket_timeout); in php_openssl_sockop_set_option()
711 tv.tv_sec = value; in php_openssl_sockop_set_option()
917 sslsock->s.timeout.tv_sec = FG(default_socket_timeout); in php_openssl_ssl_socket_factory()
[all …]
/PHP-5.4/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()
191 p = cdf_ctime(&ts.tv_sec, buf); in main()
H A Dprint.c85 t = ts.tv_sec; in file_fmttime()
/PHP-5.4/win32/
H A Dtime.c74 tv->tv_sec = (long)(ff / 1000000Ui64); in getfilesystemtime()
117 return usleep( rqtp->tv_sec * 1000000 + rqtp->tv_nsec / 1000 ); in nanosleep()
150 int timeout = value->it_value.tv_sec * 1000 + value->it_value.tv_usec;
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()
/PHP-5.4/ext/phar/
H A Dfunc_interceptors.c497 RETURN_LONG((long)stat_sb->st_atime.tv_sec); in phar_fancy_stat()
503 RETURN_LONG((long)stat_sb->st_mtime.tv_sec); in phar_fancy_stat()
676 sb.st_mtime.tv_sec = phar->max_timestamp; in phar_file_stat()
677 sb.st_atime.tv_sec = phar->max_timestamp; in phar_file_stat()
678 sb.st_ctime.tv_sec = phar->max_timestamp; in phar_file_stat()
754 sb.st_mtime.tv_sec = data->timestamp; in phar_file_stat()
755 sb.st_atime.tv_sec = data->timestamp; in phar_file_stat()
756 sb.st_ctime.tv_sec = data->timestamp; in phar_file_stat()
771 sb.st_mtime.tv_sec = data->timestamp; in phar_file_stat()
772 sb.st_atime.tv_sec = data->timestamp; in phar_file_stat()
[all …]
H A Dstream.c491 ssb->sb.st_mtime.tv_sec = data->timestamp; in phar_dostat()
492 ssb->sb.st_atime.tv_sec = data->timestamp; in phar_dostat()
493 ssb->sb.st_ctime.tv_sec = data->timestamp; in phar_dostat()
505 ssb->sb.st_mtime.tv_sec = data->timestamp; in phar_dostat()
506 ssb->sb.st_atime.tv_sec = data->timestamp; in phar_dostat()
507 ssb->sb.st_ctime.tv_sec = data->timestamp; in phar_dostat()
518 ssb->sb.st_mtime.tv_sec = phar->max_timestamp; in phar_dostat()
519 ssb->sb.st_atime.tv_sec = phar->max_timestamp; in phar_dostat()
520 ssb->sb.st_ctime.tv_sec = phar->max_timestamp; in phar_dostat()
/PHP-5.4/main/
H A Dnetwork.c406 a.tv_sec--;
409 result->tv_sec = a.tv_sec - b.tv_sec;
410 if (result->tv_sec < 0L) {
411 result->tv_sec++;
791 limit_time.tv_sec += working_timeout.tv_sec;
795 limit_time.tv_sec++;
1045 sock->timeout.tv_sec = FG(default_socket_timeout);
1170 tv.tv_sec = timeout / 1000;
1171 tv.tv_usec = (timeout - (tv.tv_sec * 1000)) * 1000;
/PHP-5.4/main/streams/
H A Dxp_socket.c64 if (sock->timeout.tv_sec == -1) in php_sockop_write()
125 if (sock->timeout.tv_sec == -1) in php_sock_stream_wait_for_data()
159 …nr_bytes = recv(sock->socket, buf, count, (sock->is_blocked && sock->timeout.tv_sec != -1) ? MSG_D… in php_sockop_read()
282 if (sock->timeout.tv_sec == -1) { in php_sockop_set_option()
283 tv.tv_sec = FG(default_socket_timeout); in php_sockop_set_option()
289 tv.tv_sec = value; in php_sockop_set_option()
810 sock->timeout.tv_sec = FG(default_socket_timeout); in php_stream_generic_socket_factory()
/PHP-5.4/ext/standard/tests/general_functions/
H A Dgetrusage_basic.phpt25 echo "User time used (seconds) " . $dat["ru_utime.tv_sec"] . "\n";
/PHP-5.4/sapi/fpm/fpm/events/
H A Dselect.c97 t.tv_sec = timeout / 1000; in fpm_event_select_wait()
H A Dport.c123 t.tv_sec = (int)(timeout / 1000); in fpm_event_port_wait()
H A Dkqueue.c128 t.tv_sec = timeout / 1000; in fpm_event_kqueue_wait()

Completed in 63 milliseconds

123