';
$timeInSeconds = $queryData['timestamp'] / 1000;
$millisecondsDiff = (int)(($timeInSeconds - (int)$timeInSeconds) * 1000);
$queries .= '' . date('H:i:s.', (int)$timeInSeconds)
. sprintf('%03d', $millisecondsDiff) . ' | ';
$queries .= '' . sprintf('%.1f ms', $queryData['duration']) . ' | ';
$queries .= '' . Html::tag('div', Html::encode($queryData['query']));
if ($hasExplain && $panel::canBeExplained($queryData['type'])) {
$queries .= Html::tag('p', '', ['class' => 'db-explain-text']);
$queries .= Html::tag(
'div',
Html::a(
'[+] Explain',
['db-explain', 'seq' => $queryData['seq'], 'tag' => Yii::$app->controller->summary['tag']]
),
['class' => 'db-explain']
);
}
$queries .= ' |
';
}
$queries .= '