php8.5
Home/ Manual/ ev / evloop/ EvLoop::now

EvLoop::now

PHP function Edit on GitHub ✎

(PECL ev >= 0.2.0)

Returns the current "event loop time"

Description

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).

Parameters Parameters

Return Values

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

See Also

  • Ev::now

Source: reference/ev/evloop/now.xml · from the official PHP manual (php/doc-en)