|
ExecutionTimer<< | Cookbook-V1 | >> Note: The recipes here are for PmWiki versions 0.6 and 1.0 only. For PmWiki 2.0 recipes, see Cookbook.
GoalSatisify my curiosity regarding the execution time of the wiki scripts. SolutionThe Execution Timer add-on appends "Execution time: x.xxxxxx miliseconds" to the bottom of your page. Just download into your local directory and add include_once( "local/executionTimer.php"); to your local.php. Revision History
Contributors
Comments.Funny extra, I added it to my pages. Script for 0.6.4+
<?php
function getmicrotime(){
list($usec, $sec) = explode(" ",microtime());
return ((float)$usec + (float)$sec);
}
$beginTime = getmicrotime();
function endTiming() {
global $beginTime;
$endTime = getmicrotime();
printf( " Tijdsduur: %1.3f sec.", $endTime - $beginTime );
}
?>
bram pmwiki-2.2.0-beta68 -- Last modified by {{brbrbr}}?
|