Funzione PHP hrtime()
Esempio
Restituisce il tempo ad alta risoluzione del sistema:
<html>
<body>
<?php
echo hrtime();
?>
</body>
</html>
L'output del codice sopra potrebbe essere qualcosa del genere:
233568471904329635
Definizione e utilizzo
La funzione hrtime() restituisce il tempo ad alta risoluzione del sistema.
Sintassi
hrtime(return_as_num)
Valori dei parametri
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 |
Dettagli tecnici
Valore di ritorno: | Restituisce nanosecondi o una matrice di numeri interi |
---|---|
Versione PHP: | 7.3+ |
❮ Riferimento a varie PHP