Skip to content

Commit 9e6b557

Browse files
committed
feat: use CLOCK_BOOTTIME
1 parent 11e5ab6 commit 9e6b557

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Zend/zend_timer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ ZEND_API void zend_timer_init(void) /* {{{ */
4949

5050
EG(pid) = getpid();
5151
// Measure wall time instead of CPU time as originally planned now that it is possible https://github.com/php/php-src/pull/6504#issuecomment-1370303727
52-
if (timer_create(CLOCK_REALTIME, &sev, &EG(timer)) != 0) {
52+
if (timer_create(CLOCK_BOOTTIME, &sev, &EG(timer)) != 0) {
5353
zend_strerror_noreturn(E_ERROR, errno, "Could not create timer");
5454
}
5555

0 commit comments

Comments
 (0)