Update Core\DB
Track time for PDO::__construct().
This commit is contained in:
parent
4eb2854293
commit
e435297865
1 changed files with 4 additions and 0 deletions
|
@ -74,8 +74,12 @@ class DB extends PDO
|
|||
self::ATTR_STATEMENT_CLASS => [DBStatement::class, [$this]],
|
||||
];
|
||||
|
||||
$start = \microtime(true);
|
||||
|
||||
parent::__construct($dsn, $username, $password, $options);
|
||||
|
||||
$this->saveQuery('PDO::__construct()', \microtime(true) - $start, false);
|
||||
|
||||
$this->beginTransaction();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue