Home
last modified time | relevance | path

Searched refs:php_hrtime_t (Results 1 – 2 of 2) sorted by relevance

/PHP-8.0/ext/standard/
H A Dhrtime.c65 _timer_scale = (double)NANO_IN_SEC / (php_hrtime_t)tf.QuadPart; in _timer_init()
111 static zend_always_inline php_hrtime_t _timer_current(void) in _timer_current()
116 return (php_hrtime_t)((php_hrtime_t)lt.QuadPart * _timer_scale); in _timer_current()
118 return (php_hrtime_t)mach_absolute_time() * _timerlib_info.numer / _timerlib_info.denom; in _timer_current()
122 return ((php_hrtime_t) ts.tv_sec * (php_hrtime_t)NANO_IN_SEC) + ts.tv_nsec; in _timer_current()
126 return (php_hrtime_t) gethrtime(); in _timer_current()
131 return (php_hrtime_t) t.tb_high * (php_hrtime_t)NANO_IN_SEC + t.tb_low; in _timer_current()
167 php_hrtime_t t = _timer_current(); in PHP_FUNCTION()
179 add_next_index_long(return_value, (zend_long)(t / (php_hrtime_t)NANO_IN_SEC)); in PHP_FUNCTION()
180 add_next_index_long(return_value, (zend_long)(t % (php_hrtime_t)NANO_IN_SEC)); in PHP_FUNCTION()
[all …]
H A Dhrtime.h48 typedef uint64_t php_hrtime_t; typedef
50 PHPAPI php_hrtime_t php_hrtime_current(void);

Completed in 7 milliseconds