mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-27 22:33:10 +09:00
Add session_start() delay and all query time to debug data
This commit is contained in:
parent
7b2e10e40d
commit
3e18f2d6ba
2 changed files with 21 additions and 2 deletions
|
|
@ -111,11 +111,13 @@ class Session
|
|||
}
|
||||
|
||||
// Start the PHP native session.
|
||||
$session_start_time = microtime(true);
|
||||
if (!session_start())
|
||||
{
|
||||
trigger_error('Session cannot be started', \E_USER_WARNING);
|
||||
return false;
|
||||
}
|
||||
Debug::addSessionStartTime(microtime(true) - $session_start_time);
|
||||
|
||||
// Mark the session as started.
|
||||
self::$_started = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue