From: Chris Duncan Date: Sun, 22 Dec 2024 08:39:23 +0000 (-0800) Subject: Line breaks. X-Git-Url: https://zoso.dev/?a=commitdiff_plain;h=31772ecd583ed8e033ab02c79555c0afa421a9bd;p=libnemo.git Line breaks. --- diff --git a/index.html b/index.html index 0611473..1e407cb 100644 --- a/index.html +++ b/index.html @@ -20,7 +20,7 @@ await block.pow() const end = performance.now() times.push(end - start) - works.textContent += `${block.work} ` + works.innerHTML += `${block.work}
` console.log(block.work) } let sum = 0, reciprocals = 0, product = 1, count = times.length @@ -30,9 +30,9 @@ product *= times[i] } const t = document.getElementById('times') - t.textContent = `Total: ${sum} ms -Average: ${sum / count} ms -Harmonic: ${count / reciprocals} ms + t.innerHTML = `Total: ${sum} ms
+Average: ${sum / count} ms
+Harmonic: ${count / reciprocals} ms
Geometric: ${Math.pow(product, 1 / count)} ms` })()