array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'zh', ), 'this' => array ( 0 => 'evtimer.set.php', 1 => 'EvTimer::set', 2 => 'Configures the watcher', ), 'up' => array ( 0 => 'class.evtimer.php', 1 => 'EvTimer', ), 'prev' => array ( 0 => 'evtimer.createstopped.php', 1 => 'EvTimer::createStopped', ), 'next' => array ( 0 => 'class.evwatcher.php', 1 => 'EvWatcher', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/ev/evtimer/set.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

EvTimer::set

(PECL ev >= 0.2.0)

EvTimer::setConfigures the watcher

说明

public EvTimer::set( float $after , float $repeat ): void

Configures the watcher

参数

after
Configures the timer to trigger after after seconds.
repeat
If repeat is 0.0, then it will automatically be stopped once the timeout is reached. If it is positive, then the timer will automatically be configured to trigger again every repeat seconds later, until stopped manually.

返回值

没有返回值。