Swoole\Timer::stats

Notice: ext-swoole is supported until v4.7.1, use ext-openswoole >= v4.7.1. Latest version: pecl install openswoole-4.10.0

Declaration

<?php
Swoole\Timer::stats()

Parameters

none

Return

array

Stats of the active Timers within the worker process

Description

Get stats of all the currently active timers within the worker process.

Swoole >= v4.4.0 is required

Example

<?php

array(3) {
  ["initialized"]=>
  bool(true)
  ["num"]=>
  int(1000)
  ["round"]=>
  int(1)
}