略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: EvLoop::now

2024-12-22

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
add a noteadd a note

User Contributed Notes

There are no user contributed notes for this page.

官方地址:https://www.php.net/manual/en/evloop.now.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3