« EvLoop::loopFork
EvLoop::nowUpdate »

EvLoop::now

(PECL ev >= 0.2.0)

EvLoop::now — Returns the current "event loop time"

説明

public function 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() - デフォルトのイベントループで直近の処理が始まった時刻を返す
関連キーワード:
event   time   loop   EvLoop   current   timestamp   loopFork   nowUpdate   float   received   events   started   processing   them   change   long   callbacks   processed   also   base   used   relative   timers   treat   occurring
関連する関数・ページ:
evloop.construct   evloop.stop   evloop.defaultloop   evloop.nowupdate   evloop.resume   evloop.suspend