1--TEST-- 2swoole_timer: timer round control 3--SKIPIF-- 4<?php require __DIR__ . '/../include/skipif.inc'; ?> 5--FILE-- 6<?php 7require __DIR__ . '/../include/bootstrap.php'; 8 9use Swoole\Timer; 10use Swoole\Event; 11 12Timer::after(10, function () { 13 Assert::eq(timer::stats()['round'], 1); 14 Timer::after(10, function () { 15 Assert::eq(timer::stats()['round'], 2); 16 }); 17 usleep(100000); 18}); 19 20Event::wait(); 21?> 22--EXPECT-- 23