Función PHP hrtime()
❮ Referencia miscelánea de PHP
Ejemplo
Devuelve el tiempo de alta resolución del sistema:
<html>
<body>
<?php
echo hrtime();
?>
</body>
</html>
La salida del código anterior podría ser algo como esto:
233568471904329635
Definición y uso
La función hrtime() devuelve el tiempo de alta resolución del sistema.
Sintaxis
hrtime(return_as_num)
Valores paramétricos
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 |
Detalles técnicos
Valor devuelto: | Devuelve nanosegundos o una matriz de enteros |
---|---|
Versión PHP: | 7.3+ |
❮ Referencia miscelánea de PHP