phpday 2025 - Call For Papers

EvLoop::nowUpdate

(PECL ev >= 0.2.0)

EvLoop::nowUpdateEstablishes the current time by querying the kernel, updating the time returned by EvLoop::now in the progress

説明

public EvLoop::nowUpdate(): void

Establishes the current time by querying the kernel, updating the time returned by EvLoop::now() in the progress. This is a costly operation and is usually done automatically within EvLoop::run() .

パラメータ

この関数にはパラメータはありません。

戻り値

値を返しません。

参考

  • EvLoop::now() - Returns the current "event loop time"
  • Ev::nowUpdate() - カーネルに問い合わせて現在時刻を確認し、処理中の Ev::now が返す時刻を更新する
add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top