MCPcopy Create free account
hub / github.com/asweigart/PythonStdioGames / sleep

Function sleep

javascript_games/dna.js:11–13  ·  view source on GitHub ↗
(seconds)

Source from the content-addressed store, hash-verified

9'use strict';
10
11function sleep(seconds) {
12 return new Promise(resolve => setTimeout(resolve, seconds * 1000));
13}
14
15const PAUSE = 0.15 // (!) Try changing this to 0.5 or 0.0.
16

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected