<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <title>Creates EvTimer watcher object associated with the current event loop instance</title> </head> <body><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="evloop.suspend.html">EvLoop::suspend</a></div> <div class="next" style="text-align: right; float: right;"><a href="evloop.verify.html">EvLoop::verify</a></div> <div class="up"><a href="class.evloop.html">EvLoop</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div><hr /><div id="evloop.timer" class="refentry"> <div class="refnamediv"> <h1 class="refname">EvLoop::timer</h1> <p class="verinfo">(PECL ev >= 0.2.0)</p><p class="refpurpose"><span class="refname">EvLoop::timer</span> — <span class="dc-title">Creates EvTimer watcher object associated with the current event loop instance</span></p> </div> <div class="refsect1 description" id="refsect1-evloop.timer-description"> <h3 class="title">Description</h3> <div class="methodsynopsis dc-description"> <span class="modifier">final</span> <span class="modifier">public</span> <span class="type"><a href="class.evtimer.html" class="type EvTimer">EvTimer</a></span> <span class="methodname"><strong>EvLoop::timer</strong></span> ( <span class="methodparam"> <span class="type">double</span> <code class="parameter">$after</code> </span> , <span class="methodparam"> <span class="type">double</span> <code class="parameter">$repeat</code> </span> , <span class="methodparam"> <span class="type"><a href="language.types.callable.html" class="type callable">callable</a></span> <code class="parameter">$callback</code> </span> [, <span class="methodparam"> <span class="type"><a href="language.pseudo-types.html#language.types.mixed" class="type mixed">mixed</a></span> <code class="parameter">$data</code> <span class="initializer"> = <strong><code>NULL</code></strong></span> </span> [, <span class="methodparam"> <span class="type">int</span> <code class="parameter">$priority</code> <span class="initializer"> = 0</span> </span> ]] )</div> <p class="para rdfs-comment"> Creates EvTimer watcher object associated with the current event loop instance </p> </div> <div class="refsect1 parameters" id="refsect1-evloop.timer-parameters"> <h3 class="title">Parameters</h3> <p class="para"> All parameters have the same meaning as for <span class="methodname"><a href="evtimer.construct.html" class="methodname">EvTimer::__construct()</a></span> </p> </div> <div class="refsect1 returnvalues" id="refsect1-evloop.timer-returnvalues"> <h3 class="title">Return Values</h3> <p class="para"> Returns EvTimer object on success </p> </div> <div class="refsect1 seealso" id="refsect1-evloop.timer-seealso"> <h3 class="title">See Also</h3> <ul class="simplelist"> <li class="member"> <span class="methodname"><a href="evtimer.construct.html" class="methodname" rel="rdfs-seeAlso">EvTimer::__construct()</a> - Constructs an EvTimer watcher object</span> </li> </ul> </div> </div><hr /><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="evloop.suspend.html">EvLoop::suspend</a></div> <div class="next" style="text-align: right; float: right;"><a href="evloop.verify.html">EvLoop::verify</a></div> <div class="up"><a href="class.evloop.html">EvLoop</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div></body></html>