EvLoop::now

(PECL ev >= 0.2.0)

EvLoop::nowReturns the current "event loop time"

说明

public EvLoop::now ( void ) : float

Returns the current "event loop time", which is the time the event loop received events and started processing them. This timestamp does not change as long as callbacks are being processed, and this is also the base time used for relative timers. You can treat it as the timestamp of the event occurring(or more correctly, libev finding out about it).

参数

此函数没有参数。

返回值

Returns time of the event loop in (fractional) seconds.

参见

  • Ev::now() - Returns the time when the last iteration of the default event loop has started
相关文章
php ev returns the time when the last iteration of the default event loop has startedphp ev returns the current time in fractional seconds since the epochphp eventbase returns the current event base timephp eventbufferevent returns underlying input buffer associated with current buffer eventphp eventbufferevent returns underlying output buffer associated with current buffer eventphp evloop creates evcheck object associated with the current event loop instancephp evloop creates evchild object associated with the current event loopphp evloop constructs the event loop objectphp evloop returns or creates the default event loopphp evloop creates evfork watcher object associated with the current event loop instancephp evloop creates evidle watcher object associated with the current event loop instancephp evloop create evio watcher object associated with the current event loop instancephp evloop returns the current event loop time php evloop establishes the current time by querying the kernel updating the time returned by evloop now in the progressphp evloop creates evperiodic watcher object associated with the current event loop instancephp evloop creates evprepare watcher object associated with the current event loop instancephp evloop resume previously suspended default event loopphp evloop creates evsignal watcher object associated with the current event loop instancephp evloop creates evstat watcher object associated with the current event loop instancephp evloop creates evtimer watcher object associated with the current event loop instance
关注编程学问公众号