Lines Matching refs:elapsed_time
1120 zend_long elapsed_time; in php_openssl_limit_handshake_reneg() local
1132 elapsed_time = (now.tv_sec - sslsock->reneg->prev_handshake); in php_openssl_limit_handshake_reneg()
1134 sslsock->reneg->tokens -= (elapsed_time * (sslsock->reneg->limit / sslsock->reneg->window)); in php_openssl_limit_handshake_reneg()
1943 struct timeval cur_time, elapsed_time; in php_openssl_enable_crypto() local
1954 elapsed_time = php_openssl_subtract_timeval(cur_time, start_time); in php_openssl_enable_crypto()
1956 if (php_openssl_compare_timeval( elapsed_time, *timeout) > 0) { in php_openssl_enable_crypto()
1972 left_time = php_openssl_subtract_timeval(*timeout, elapsed_time); in php_openssl_enable_crypto()
2078 struct timeval cur_time, elapsed_time, left_time; in php_openssl_sockop_io() local
2085 elapsed_time = php_openssl_subtract_timeval(cur_time, start_time); in php_openssl_sockop_io()
2088 if (php_openssl_compare_timeval(elapsed_time, *timeout) > 0 ) { in php_openssl_sockop_io()
2117 left_time = php_openssl_subtract_timeval( *timeout, elapsed_time ); in php_openssl_sockop_io()
2506 struct timeval cur_time, elapsed_time, left_time; in php_openssl_sockop_set_option() local
2513 elapsed_time = php_openssl_subtract_timeval(cur_time, start_time); in php_openssl_sockop_set_option()
2516 if (php_openssl_compare_timeval(elapsed_time, *timeout) > 0 ) { in php_openssl_sockop_set_option()
2556 left_time = php_openssl_subtract_timeval(*timeout, elapsed_time); in php_openssl_sockop_set_option()