PHP | hrtime() Function Last Updated : 29 Aug, 2019 Comments Improve Suggest changes Like Article Like Report The hrtime() function is an inbuilt function in PHP which returns the high-resolution time of the system. Syntax: mixed hrtime( bool $is_num_return ); Parameter: This function accepts a single parameter as mentioned above and described below: $is_num_return: It is optional parameter of Boolean type. It specifies whether it return as a single number or array. If it set to TRUE then it returns as number or as an array of integers in case of FALSE. Default value is FALSE. Return Value: This function returns the nanoseconds or an array of integers. Note: This function is available for PHP 7.3.0 and newer version. Below programs illustrate the hrtime() function in PHP: Program 1: This program sets $is_num_return to TRUE. php <?php print_r(hrtime(TRUE)); ?> Output: 149632499993800 Program 2: This program does not set $is_num_return value. It means it takes the default value. php <?php print_r(hrtime()); ?> Output: Array ( [0] => 150389 [1] => 914027500 ) Reference: https://www.php.net/manual/en/function.hrtime.php Create Quiz Comment G gekcho Follow 0 Improve G gekcho Follow 0 Improve Article Tags : Web Technologies PHP PHP-function Explore BasicsPHP Syntax4 min readPHP Variables5 min readPHP | Functions6 min readPHP Loops4 min readArrayPHP Arrays5 min readPHP Associative Arrays4 min readMultidimensional arrays in PHP5 min readSorting Arrays in PHP4 min readOOPs & InterfacesPHP Classes2 min readPHP | Constructors and Destructors5 min readPHP Access Modifiers4 min readMultiple Inheritance in PHP4 min readMySQL DatabasePHP | MySQL Database Introduction4 min readPHP Database connection2 min readPHP | MySQL ( Creating Database )3 min readPHP | MySQL ( Creating Table )3 min readPHP AdvancePHP Superglobals6 min readPHP | Regular Expressions12 min readPHP Form Handling4 min readPHP File Handling4 min readPHP | Uploading File3 min readPHP Cookies9 min readPHP | Sessions7 min read Like