8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5b27c2f commit eb6974dCopy full SHA for eb6974d
src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/base_js.html.twig
@@ -168,6 +168,10 @@
168
durationCell.textContent = 'n/a';
169
row.appendChild(durationCell);
170
171
+ request.liveDurationHandle = setInterval(function() {
172
+ durationCell.textContent = (new Date() - request.start) + 'ms';
173
+ }, 100);
174
+
175
row.className = 'sf-ajax-request sf-ajax-request-loading';
176
tbody.insertBefore(row, tbody.firstChild);
177
@@ -176,6 +180,8 @@
180
181
var finishAjaxRequest = function(index) {
178
182
var request = requestStack[index];
183
+ clearInterval(request.liveDurationHandle);
184
179
185
if (!request.DOMNode) {
186
return;
187
}
0 commit comments