Skip to content

Commit a7776c3

Browse files
committed
Measure wall-time instead of CPU-time
1 parent 4bc9487 commit a7776c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Zend/zend_timers.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ ZEND_API void zend_timers_create(void) /* {{{ */
4747
sev.sigev_signo = SIGIO;
4848
sev.sigev_notify_thread_id = (pid_t) syscall(SYS_gettid);
4949

50-
if (timer_create(CLOCK_THREAD_CPUTIME_ID, &sev, &EG(timer)) != 0) {
50+
if (timer_create(CLOCK_REALTIME, &sev, &EG(timer)) != 0) {
5151
zend_strerror_noreturn(E_ERROR, errno, "Could not create timer");
5252
}
5353

0 commit comments

Comments
 (0)