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

EvStat::set

(PECL ev >= 0.2.0)

EvStat::setConfigures the watcher

说明

public EvStat::set( string $path , float $interval ): void

Configures the watcher.

参数

path

The path to wait for status changes on.

interval

Hint on how quickly a change is expected to be detected and should normally be specified as 0.0 to let libev choose a suitable value.

返回值

没有返回值。