Returns the current "event loop time"

EvLoop::now

(PECL ev >= 0.2.0)

EvLoop::nowReturns the current "event loop time"

說明

public EvLoop::now(): 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

發佈留言

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *