PHP hrtime() Function

PHP Misc Reference : Return the system's high resolution time

Definition and Usage

The hrtime() function returns the system's high resolution time.

Syntax

hrtime(return_as_num)

Parameter Values

Parameter Description
return_as_num Optional. If set to TRUE, this function will return the high resolution time as array or number. Default is FALSE

Technical Details

Return Value: Returns nanoseconds or an array of integers
PHP Version: 7.3+

❮ PHP Misc Reference