- [misc] remove unused code and file.

This commit is contained in:
liugang
2025-06-12 09:19:48 +00:00
parent 511caad517
commit 147c8f7cf1
2 changed files with 0 additions and 51 deletions
-17
View File
@@ -504,23 +504,6 @@ class commonModel extends model
helper::end();
}
/**
* 输出运行信息。
* Print the run info.
*
* @param mixed $startTime the start time.
* @access public
* @return array the run info array.
*/
public function printRunInfo($startTime)
{
$info['timeUsed'] = round(getTime() - $startTime, 4) * 1000;
$info['memory'] = round(memory_get_peak_usage() / 1024, 1);
$info['querys'] = count(dbh::$queries);
vprintf($this->lang->runInfo, $info);
return $info;
}
/**
* 格式化日期,将日期格式化为YYYY-mm-dd,将日期时间格式化为YYYY-mm-dd HH:ii:ss。
* Format the date to YYYY-mm-dd, format the datetime to YYYY-mm-dd HH:ii:ss.