1
mirror of https://github.com/jedisct1/libsodium.git synced 2024-12-19 10:05:05 -07:00

Round duration

This commit is contained in:
Frank Denis 2017-10-05 00:20:55 +02:00
parent 752c1fff2d
commit 37d9f09f5b

View File

@ -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 {