Swoole\Timer::statsGet timer statistics. Description
public static array Swoole\Timer::stats()
Get timer statistics. As of Swoole 4.4.0. Return ValuesReturns an array with the following keys:
ExamplesExample #1 Swoole\Timer::stats example The above example will output something similar to:
array(3) {
["initialized"]=>
bool(true)
["num"]=>
int(1)
["round"]=>
int(0)
}
|