From 51da082cfd68571033610f9f8bb89f3d5b383a50 Mon Sep 17 00:00:00 2001 From: "as2252258@163.com" Date: Sat, 20 Mar 2021 04:02:20 +0800 Subject: [PATCH] modify --- System/Process/CrontabProcess.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/System/Process/CrontabProcess.php b/System/Process/CrontabProcess.php index 5598cabe..14423914 100644 --- a/System/Process/CrontabProcess.php +++ b/System/Process/CrontabProcess.php @@ -120,8 +120,8 @@ class CrontabProcess extends Process Timer::clear($this->names[$name]); } $callback = function () use ($content) { - var_dump('executes'); - $content->execute($this); + var_dump('executes', Timer::stats()); +// $content->execute($this); }; $runTicker = [$content->getTickTime() * 1000, $callback]; if ($content->isLoop()) { @@ -129,7 +129,7 @@ class CrontabProcess extends Process } else { $this->names[$name] = Timer::after(...$runTicker); } - var_dump($this->names, Timer::stats()); + var_dump($this->names); }