OSDN Git Service

Merge branch 'skinnable-master'
[nucleus-jp/nucleus-next.git] / skins / default / show_benchmark.inc
1 <?php
2 if ( !function_exists('getmtime') )
3 {
4         function getmtime()
5         {
6                 $a = preg_split('# #', microtime());
7                 return(double) $a[0] + $a[1];
8         }
9 }
10
11 global $StartTime;
12 $loadtime = getmtime() - $StartTime;
13 printf("%.3f sec/%d queries", $loadtime, DB::getExecCount());