Join 4,000+ others and never miss out on new tips, tutorials, and more.
Latest version:
pecl install openswoole-22.1.2 | composer require openswoole/core:22.1.5
<?php OpenSwoole\Timer::info(int $timerId)\:\ array
The ID of the Timer to get information for
if success, it returns an array
of information about the timer
if it fails false
will be returned
Return information about the given timer ID. See example for the information returned.
OpenSwoole >= v4.4.0 is required
<?php
$timerInfo = OpenSwoole\Timer::info($timerId);
var_dump(timerInfo);
// Output:
array(4) {
["exec_msec"]=>
int(1000)
["interval"]=>
int(0)
["round"]=>
int(0)
["removed"]=>
bool(false)
}