I use echo date('H:i:s')." this step time\n"; to find out how long it takes for each function to execute.
echo date('H:i:s')." this step time\n";
How to find out the time in microseconds?
Just add the PHP microtime () function , which can be used as follows:
$time_start = microtime(true); //do stuff here $time_end = microtime(true); $time = $time_end - $time_start; echo "It took $time seconds\n";
u Microseconds (added in PHP 5.2.2)
Take a look at http://no.php.net/manual/en/function.date.php for more information.
Use the 'u' token in millisecond format.
Source: https://habr.com/ru/post/1706826/More articles:Need a good schema / workflow for managing database objects using Subversion - databaseКак создать защищенный паролем zip файл с помощью python? - pythonDependency Injection and ModelStateWrapper - dependency-injectionDoes adding an operation to a WCF service contract mean that the entire WCF client needs to update its links? - c #Ugly Java data structure - javaCompactFramework 2.0 - forms and panel loading - c #Accents in a filename using Java in Solaris - javaFileTest.exists? release ruby on rails - ruby | fooobar.comIs there a best practice for arranging database columns? - databaseКак создать script, чтобы переместить текущий активный адрес электронной почты в папку "Входящие" в другую папку в Outlook 2007 - vbaAll Articles