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... + } /* * 今日折线图 */