OSDN Git Service

preparation for 4.0 trunk
[nucleus-jp/nucleus-jp-ancient.git] / utf8 / skins / default / inc / show_benchmark.inc
1 <?php\r
2 if (!function_exists('getmtime'))\r
3 {\r
4   function getmtime()\r
5   {\r
6     $a = explode (' ', microtime());\r
7     return(double) $a[0] + $a[1];\r
8   }\r
9 }\r
10 \r
11   global $StartTime, $SQLCount;\r
12   $loadtime = getmtime() - $StartTime;\r
13   printf("%.3f sec/%d queries", $loadtime, $SQLCount);\r
14 ?>\r