搭建 TimerServer
Last updated
Was this helpful?
Last updated
Was this helpful?
Was this helpful?
<?php
namespace TimerServer\timer;
class TenSecondsTimer {
public $interval;
public function __construct()
{
$this->interval = 10000; //单位为毫秒
}
public function execute() {
// 你的业务代码
}
}<?php
return array(
'appName' => 'PHPTest',
'serverName' => 'PHPTimerServer',
'objName' => 'obj',
);