Searched refs:php_hrtime_t (Results 1 – 2 of 2) sorted by relevance
67 _timer_scale = (double)NANO_IN_SEC / (php_hrtime_t)tf.QuadPart; in _timer_init()113 static zend_always_inline php_hrtime_t _timer_current(void) in _timer_current()118 return (php_hrtime_t)((php_hrtime_t)lt.QuadPart * _timer_scale); in _timer_current()120 return (php_hrtime_t)mach_absolute_time() * _timerlib_info.numer / _timerlib_info.denom; in _timer_current()124 return ((php_hrtime_t) ts.tv_sec * (php_hrtime_t)NANO_IN_SEC) + ts.tv_nsec; in _timer_current()128 return (php_hrtime_t) gethrtime(); in _timer_current()133 return (php_hrtime_t) t.tb_high * (php_hrtime_t)NANO_IN_SEC + t.tb_low; in _timer_current()170 php_hrtime_t t = _timer_current(); in PHP_FUNCTION()182 add_next_index_long(return_value, (zend_long)(t / (php_hrtime_t)NANO_IN_SEC)); in PHP_FUNCTION()183 add_next_index_long(return_value, (zend_long)(t % (php_hrtime_t)NANO_IN_SEC)); in PHP_FUNCTION()[all …]
50 typedef uint64_t php_hrtime_t; typedef52 PHPAPI php_hrtime_t php_hrtime_current(void);
Completed in 7 milliseconds