hrtime
hrtime
Get the system's high resolution time
**hrtime** bool $as_number
Returns the system's high resolution time, counted from an arbitrary point in time. The delivered timestamp is monotonic and can not be adjusted.
as_number
Whether the high resolution time should be returned as
or number.
array
Returns an array of integers in the form [seconds, nanoseconds], if the
parameter is false. Otherwise the nanoseconds
are returned as (64bit platforms) or
(32bit platforms).
Returns false on failure.
as_number``int``float
Voorbeeld: usage
<?php
echo hrtime(true), PHP_EOL;
print_r(hrtime());
?>
10444739687370679
Array
(
[0] => 10444739
[1] => 687464812
)
High resolution timingmicrotime