here's an ultra simple script for you all (PHP5 only.. for
obvious reasons)
stick this at the top of any script or app, and you'll get a
the execution time in microseconds of the script.
It will output in raw text at the foot of the output, after
execution has finished.. so only really useful for
developing (swap the print_r for a logging function for live
use?)
<?
class pageExecutionTimer {
private $executionTime;
public function __construct() {
$this->executionTime = microtime(true);
}
public function __destruct() {
print_r(chr(10).chr(13).(microtime(true)-$this->executi
onTime));
}
}
$pageExecutionTimer = new pageExecutionTimer();
?>
----
Server IP: 194.145.210.3
Probable Submitter: 82.23.133.0
----
Manual Page -- h
ttp://www.php.net/manual/en/function.microtime.php
Edit -- https://master
.php.net/note/edit/76021
Del: integrated -- h
ttps://master.php.net/note/delete/76021/integrated
Del: useless -- http
s://master.php.net/note/delete/76021/useless
Del: bad code -- htt
ps://master.php.net/note/delete/76021/bad+code
Del: spam -- https:/
/master.php.net/note/delete/76021/spam
Del: non-english --
https://master.php.net/note/delete/76021/non-english
Del: in docs -- http
s://master.php.net/note/delete/76021/in+docs
Del: other reasons-- https://mast
er.php.net/note/delete/76021
Reject -- https://mast
er.php.net/note/reject/76021
Search -- https://
master.php.net/manage/user-notes.php
--
PHP Notes Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub
.php
|