From 4af962e5a6d144d458aa1c4b81ec15879da286f8 Mon Sep 17 00:00:00 2001 From: chenzhi <“chenzhi063@qq.com> Date: Wed, 27 Nov 2019 11:55:27 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E9=A1=B5=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Admin/Controller/IndexController.class.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/Application/Admin/Controller/IndexController.class.php b/Application/Admin/Controller/IndexController.class.php index 1cbe5477d..be83e75d0 100644 --- a/Application/Admin/Controller/IndexController.class.php +++ b/Application/Admin/Controller/IndexController.class.php @@ -60,6 +60,21 @@ class IndexController extends AdminController { //累计统计 $this->display(); } + /** + * 速度测试 + * + * @param [type] $num + * @return void + */ + public function test($start,$end) + { + set_time_limit(0); + $t1 = microtime(true); + $this->foldLineDiagram($start,$end,1,true); + $t2 = microtime(true); + echo ("success runtime:".round($t2-$t1,3).'s'.PHP_EOL); + # code... + } /* * 今日折线图 */