wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



timer_float › WordPress Function

Depuis5.8.0
Dépréciéen/a
timer_float ( Pas de paramètres )
Retourne:
  • (float) Seconds since the PHP script started.
Défini(e) dans:
Codex:

Gets the time elapsed so far during this PHP script.

Uses REQUEST_TIME_FLOAT that appeared in PHP 5.4.0.


Source

function timer_float() {
	return microtime( true ) - $_SERVER['REQUEST_TIME_FLOAT'];
}