PHP hrtime() Function
Example
Return the system's high resolution time:
<html>
<body>
<?php
echo hrtime();
?>
</body>
</html>
The output of the code above could be something like this:
233568471904329635
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