mirror of
https://github.com/jedisct1/libsodium.git
synced 2024-12-19 18:15:18 -07:00
Round duration
This commit is contained in:
parent
752c1fff2d
commit
37d9f09f5b
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user