I wrote a script to calculate the page execution time.
The execution time is displayed in the upper right corner of the page.
The advantage is that you can execute the code snippet at the beginning.(1)[Code][PHP] Code01<?php02$t = new executeTime;03 04phpinfo();05 06class executeTime{07 private $microtime;08 public function __construct(){09 $this->microtime = microtime(true);10 }11 12 public function getNow(){13 $this->__dectruct();14 }15 16 public function __destruct(){17 if (empty($_SERVER['REQUEST_TIME_FLOAT']))18 echo '<Div style = "color: # fff; background: #000; position: absolute; top: 0px; right: 0px; padding: 3px 6px;"> execution time :', microtime(TRUE) - $this->microtime, 'Second </div>';19 else20 echo '<Div style = "color: # fff; background: #000; position: absolute; top: 0px; right: 0px; padding: 3px 6px;"> execution time :', microtime(TRUE) - $_SERVER['REQUEST_TIME_FLOAT'], 'Second </div>';21 }22}