OSDN Git Service

本家Nucleus CMS 4.0のリビジョン1626をコミット
[nucleus-jp/nucleus-next.git] / skins / default / show_benchmark.inc
diff --git a/skins/default/show_benchmark.inc b/skins/default/show_benchmark.inc
new file mode 100644 (file)
index 0000000..95774c9
--- /dev/null
@@ -0,0 +1,14 @@
+<?php
+if (!function_exists('getmtime'))
+{
+  function getmtime()
+  {
+    $a = i18n::explode (' ', microtime());
+    return(double) $a[0] + $a[1];
+  }
+}
+
+  global $StartTime, $SQLCount;
+  $loadtime = getmtime() - $StartTime;
+  printf("%.3f sec/%d queries", $loadtime, $SQLCount);
+?>