<?php
if ( !function_exists('getmtime') )
{
	function getmtime()
	{
		$a = preg_split('# #', microtime());
		return(double) $a[0] + $a[1];
	}
}

global $StartTime;
$loadtime = getmtime() - $StartTime;
printf("%.3f sec/%d queries", $loadtime, DB::getExecCount());
