hrtime
Description
The hrtime of Miscellaneous for PHP get the system's high resolution time.
Syntax
hrtime ( [ bool $get_as_number = FALSE ] ) : mixed
Parameters
get_as_number
Whether the high resolution time should be returned as array or number.
Return
Returns an array of integers in the form [seconds, nanoseconds], if the parameter get_as_number is false. Otherwise the nanoseconds are returned as integer (64bit platforms) or float (32bit platforms).
Examples
1 · void
<? $array = hrtime(); print_r($array); ?>
Array ( [0] => 16685748 [1] => 532295021 )
2 · get_as_number
<? $get_as_number = true; $number = hrtime($get_as_number); echo $number; ?>
16685748597957892