hrtime
reactphp/event-loop
Supported Versions: PHP 7 >= 7.3.0, PHP 8
Get the system's high resolution time
hrtime
(
bool $as_number
=
false
): array|
int
|
float
|
false
public function
updateTime
()
{
return
$this
->
time
=
$this
->
useHighResolution
?
\hrtime
(
true
) *
1e-9
:
\microtime
(
true
);
}
public function
getTime
()
src/Timer/Timers.php