Searched refs:tv_sec (Results 1 - 25 of 61) sorted by relevance

123

/PHP_TRUNK/sapi/fpm/fpm/
H A Dfpm_clock.c44 tv->tv_sec = ts.tv_sec;
100 tv->tv_sec = aTime.tv_sec;
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; \
[all...]
H A Dfpm_children.c252 zlog(severity, "[pool %s] child %d exited %s after %ld.%06d seconds from start", child->wp->config->name, (int) pid, buf, tv2.tv_sec, (int) tv2.tv_usec);
254 zlog(ZLOG_DEBUG, "[pool %s] child %d has been killed by the process management after %ld.%06d seconds from start", child->wp->config->name, (int) pid, tv2.tv_sec, (int) tv2.tv_usec);
262 time_t now = tv1.tv_sec;
H A Dfpm_events.c408 timeout = (tmp.tv_sec * 1000) + (tmp.tv_usec / 1000) + 1;
510 tmp.tv_sec = frequency / 1000;
513 tmp.tv_sec = 0;
H A Dfpm_log.c198 len2 = snprintf(b, FPM_LOG_BUFFER - len, "%.2f", tms_total / fpm_scoreboard_get_tick() / (proc.cpu_duration.tv_sec + proc.cpu_duration.tv_usec / 1000000.) * 100.);
207 len2 = snprintf(b, FPM_LOG_BUFFER - len, "%.3f", proc.duration.tv_sec + proc.duration.tv_usec / 1000000.);
213 len2 = snprintf(b, FPM_LOG_BUFFER - len, "%.3f", proc.duration.tv_sec * 1000. + proc.duration.tv_usec / 1000.);
219 len2 = snprintf(b, FPM_LOG_BUFFER - len, "%lu", proc.duration.tv_sec * 1000000UL + proc.duration.tv_usec);
H A Dfpm_request.c240 if (child->slow_logged.tv_sec) {
241 if (child->slow_logged.tv_sec != proc.accepted.tv_sec || child->slow_logged.tv_usec != proc.accepted.tv_usec) {
242 child->slow_logged.tv_sec = 0;
255 if (child->slow_logged.tv_sec == 0 && slowlog_timeout &&
256 proc.request_stage == FPM_REQUEST_EXECUTING && tv.tv_sec >= slowlog_timeout) {
267 (int) tv.tv_sec, (int) tv.tv_usec);
271 if (terminate_timeout && tv.tv_sec >= terminate_timeout) {
277 (int) tv.tv_sec, (int) tv.tv_usec);
H A Dfpm_status.c431 if (proc.cpu_duration.tv_sec == 0 && proc.cpu_duration.tv_usec == 0) {
434 cpu = (proc.last_request_cpu.tms_utime + proc.last_request_cpu.tms_stime + proc.last_request_cpu.tms_cutime + proc.last_request_cpu.tms_cstime) / fpm_scoreboard_get_tick() / (proc.cpu_duration.tv_sec + proc.cpu_duration.tv_usec / 1000000.) * 100.;
450 duration.tv_sec * 1000000UL + duration.tv_usec,
/PHP_TRUNK/ext/standard/
H A Dlcg.c81 LCG(s1) = tv.tv_sec ^ (tv.tv_usec<<11);
H A Duniqid.c73 sec = (int) tv.tv_sec;
H A Dmicrotime.c68 RETURN_DOUBLE((double)(tp.tv_sec + tp.tv_usec / MICRO_IN_SEC));
74 offset = timelib_get_time_zone_info(tp.tv_sec, get_timezone_info());
77 add_assoc_long(return_value, "sec", tp.tv_sec);
87 snprintf(ret, 100, "%.8F %ld", tp.tv_usec / MICRO_IN_SEC, tp.tv_sec);
156 PHP_RUSAGE_PARA(ru_utime.tv_sec);
158 PHP_RUSAGE_PARA(ru_stime.tv_sec);
H A Dfsock.c72 tv.tv_sec = conv / 1000000;
75 tv.tv_sec = conv / 1000000;
H A Dstreamsfuncs.c117 tv.tv_sec = (long)(conv / 1000000);
120 tv.tv_sec = conv / 1000000;
259 tv.tv_sec = (long)(conv / 1000000);
262 tv.tv_sec = conv / 1000000;
710 /* {{{ proto int stream_select(array &read_streams, array &write_streams, array &except_streams, int tv_sec[, int tv_usec])
711 Runs the select() system call on the sets of streams with a timeout specified by tv_sec and tv_usec */
771 tv.tv_sec = (long)(Z_LVAL_P(sec) + (usec / 1000000));
776 tv.tv_sec = Z_LVAL_P(sec) + (usec / 1000000);
779 tv.tv_sec = Z_LVAL_P(sec);
1312 t.tv_sec
[all...]
/PHP_TRUNK/sapi/fpm/fpm/events/
H A Dkqueue.c128 t.tv_sec = timeout / 1000;
H A Dport.c123 t.tv_sec = (int)(timeout / 1000);
H A Dselect.c97 t.tv_sec = timeout / 1000;
/PHP_TRUNK/win32/
H A Dselect.c55 ms_total = tv->tv_sec * 1000;
111 tvslice.tv_sec = 0;
H A Dgetrusage.c36 tv->tv_sec = (zend_long) (time.QuadPart / 10000000);
H A Dtime.c79 tv->tv_sec = (long)(ff / 1000000Ui64);
122 return usleep( rqtp->tv_sec * 1000000 + rqtp->tv_nsec / 1000 );
H A Dtime.h34 time_t tv_sec; /* seconds */ member in struct:timespec
/PHP_TRUNK/ext/fileinfo/libmagic/
H A Dcdf_time.c138 ts->tv_sec = mktime(&tm);
139 if (ts->tv_sec == -1) {
192 p = cdf_ctime(&ts.tv_sec, buf);
H A Dprint.c86 t = ts.tv_sec;
/PHP_TRUNK/ext/openssl/
H A Dxp_ssl.c1044 sslsock->reneg->prev_handshake = now.tv_sec;
1048 elapsed_time = (now.tv_sec - sslsock->reneg->prev_handshake);
1049 sslsock->reneg->prev_handshake = now.tv_sec;
1801 has_timeout = !sslsock->s.is_blocked && (timeout->tv_sec || timeout->tv_usec);
1953 if (!sslsock->s.is_blocked && timeout && (timeout->tv_sec || timeout->tv_usec)) {
2095 difference.tv_sec = a.tv_sec - b.tv_sec;
2099 b.tv_sec -= 1L;
2108 if (a.tv_sec >
[all...]
/PHP_TRUNK/ext/phar/
H A Dfunc_interceptors.c494 RETURN_LONG((zend_long)stat_sb->st_atime.tv_sec);
500 RETURN_LONG((zend_long)stat_sb->st_mtime.tv_sec);
506 RETURN_LONG((zend_long)stat_sb->st_ctime.tv_sec);
552 ZVAL_LONG(&stat_atime, (stat_sb->st_atime).tv_sec);
553 ZVAL_LONG(&stat_mtime, (stat_sb->st_mtime).tv_sec);
554 ZVAL_LONG(&stat_ctime, (stat_sb->st_ctime).tv_sec);
673 sb.st_mtime.tv_sec = phar->max_timestamp;
674 sb.st_atime.tv_sec = phar->max_timestamp;
675 sb.st_ctime.tv_sec = phar->max_timestamp;
719 sb.st_mtime.tv_sec
[all...]
H A Dstream.c494 ssb->sb.st_mtime.tv_sec = data->timestamp;
495 ssb->sb.st_atime.tv_sec = data->timestamp;
496 ssb->sb.st_ctime.tv_sec = data->timestamp;
508 ssb->sb.st_mtime.tv_sec = data->timestamp;
509 ssb->sb.st_atime.tv_sec = data->timestamp;
510 ssb->sb.st_ctime.tv_sec = data->timestamp;
521 ssb->sb.st_mtime.tv_sec = phar->max_timestamp;
522 ssb->sb.st_atime.tv_sec = phar->max_timestamp;
523 ssb->sb.st_ctime.tv_sec = phar->max_timestamp;
/PHP_TRUNK/main/
H A Dnetwork.c408 a.tv_sec--;
411 result->tv_sec = a.tv_sec - b.tv_sec;
412 if (result->tv_sec < 0L) {
413 result->tv_sec++;
798 limit_time.tv_sec += working_timeout.tv_sec;
802 limit_time.tv_sec++;
1099 sock->timeout.tv_sec
[all...]

Completed in 32 milliseconds

123