OSDN Git Service

sync NucleusCMS_en-3-4-RC
[nucleus-jp/nucleus-jp-ancient.git] / utf8 / benchmark.inc
diff --git a/utf8/benchmark.inc b/utf8/benchmark.inc
new file mode 100644 (file)
index 0000000..f74eb07
--- /dev/null
@@ -0,0 +1,15 @@
+<?php\r
+\r
+if (!function_exists('getmtime'))\r
+{\r
+  function getmtime()\r
+  {\r
+    $a = explode (' ',microtime());\r
+    return(double) $a[0] + $a[1];\r
+  }\r
+}\r
+\r
+// For benchmarking\r
+global $StartTime;\r
+$StartTime = getmtime();\r
+?>\r