This commit is contained in:
as2252258@163.com
2021-03-20 04:02:20 +08:00
parent 6f51a5349c
commit 51da082cfd
+3 -3
View File
@@ -120,8 +120,8 @@ class CrontabProcess extends Process
Timer::clear($this->names[$name]); Timer::clear($this->names[$name]);
} }
$callback = function () use ($content) { $callback = function () use ($content) {
var_dump('executes'); var_dump('executes', Timer::stats());
$content->execute($this); // $content->execute($this);
}; };
$runTicker = [$content->getTickTime() * 1000, $callback]; $runTicker = [$content->getTickTime() * 1000, $callback];
if ($content->isLoop()) { if ($content->isLoop()) {
@@ -129,7 +129,7 @@ class CrontabProcess extends Process
} else { } else {
$this->names[$name] = Timer::after(...$runTicker); $this->names[$name] = Timer::after(...$runTicker);
} }
var_dump($this->names, Timer::stats()); var_dump($this->names);
} }