From 7a6232fdec42c24fd7e70601194431b5ddd5468a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E5=88=9A?= Date: Thu, 10 Aug 2023 10:20:58 +0800 Subject: [PATCH] revert 64def76b06e5e9851b14f610ceed2b7807092ac3 revert + helper: add function to compute and display time consuming between 2 endpoints. --- framework/helper.class.php | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/framework/helper.class.php b/framework/helper.class.php index 9de93059f4..1147271e04 100644 --- a/framework/helper.class.php +++ b/framework/helper.class.php @@ -390,31 +390,6 @@ function formatTime($time, $format = '') return trim($time); } -/** - * Display time consuming. - * - * @param string $tag - * @access public - * @return void - */ -function t($tag = '') -{ - global $last; - $time = microtime(); - - if($last) - { - list($lms, $ls) = explode(' ', $last); - list($ms, $s) = explode(' ', $time); - a("$tag: time consuming=" . ($s - $ls + round($ms - $lms, 3)) . 's'); - } - else - { - a("$tag: current time={$time}"); - } - $last = $time; -} - /** * Fix for session error. *