Menu Riverview Church

HRTIME

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

VOID

Array
(
    [0] => 631564
    [1] => 386525019
)

GET_AS_NUMBER

631564408744582

PHP