php8.5
Home/ Manual/ ev / ev/ Ev::now

Ev::now

PHP function Edit on GitHub ✎

(PECL ev >= 0.2.0)

Returns the time when the last iteration of the default event loop has started

Description

Ev::now(): float

Returns the time when the last iteration of the default event loop has started. This is the time that timers( EvTimer and EvPeriodic) are based on, and referring to it is usually faster than calling Ev::time.

Parameters Parameters

Return Values

Returns number of seconds(fractional) representing the time when the last iteration of the default event loop has started.

See Also

  • Ev::nowUpdate

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