mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-29 15:22:15 +09:00
Provide methods to tell total elapsed time
This commit is contained in:
parent
421199b196
commit
902b931b89
2 changed files with 23 additions and 2 deletions
|
|
@ -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 ====================
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue