Provide methods to tell total elapsed time

This commit is contained in:
Kijin Sung 2020-06-29 22:30:48 +09:00
parent 421199b196
commit 902b931b89
2 changed files with 23 additions and 2 deletions

View file

@ -947,6 +947,26 @@ class DB
Debug::addQuery($log);
}
/**
* Get total time spent during queries.
*
* @return float
*/
public function getQueryElapsedTime()
{
return $this->_query_time;
}
/**
* Get total time spent in this class.
*
* @return float
*/
public function getTotalElapsedTime()
{
return $this->_total_time;
}
/**
* ========================== DEPRECATED METHODS ==========================
* ==================== KEPT FOR COMPATIBILITY WITH XE ====================