From 37d9f09f5b58e2d3c40f316d8d1359bf98212912 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Thu, 5 Oct 2017 00:20:55 +0200 Subject: [PATCH] Round duration --- test/default/index.html.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/default/index.html.tpl b/test/default/index.html.tpl index 02c4948b..b10d1665 100644 --- a/test/default/index.html.tpl +++ b/test/default/index.html.tpl @@ -46,7 +46,7 @@ function runTest(tname) { if (passed) { performance.mark('bench_end') performance.measure('bench', 'bench_start', 'bench_end'); - let duration = performance.getEntriesByName('bench')[0].duration; + let duration = Math.round(performance.getEntriesByName('bench')[0].duration); hn.appendChild(document.createTextNode(' - PASSED (time: ' + duration + ')')); hn.className = 'passed'; } else {