use directories for structure

This commit is contained in:
s2
2020-05-26 10:37:57 +02:00
parent 66580d4847
commit ae4aaf2668
1287 changed files with 92093 additions and 13113 deletions

View File

@@ -14,7 +14,9 @@ const clockIsAccurate = require("./clock-is-accurate");
function calculateClockOffset() {
const start = Date.now();
let cur = start;
while (cur === start) {
// Limit the iterations, just in case we're running in an environment where Date.now() has been mocked and is
// constant.
for (let i = 0; i < 1e6 && cur === start; i++) {
cur = Date.now();
}