update index.js and util.js

main
MohammadHoseinPaymard 2 weeks ago
parent 7fa92ba272
commit 5997b7be11
  1. 1
      index.js
  2. 2
      util.js

@ -4,7 +4,6 @@ const { sleep } = require('./util');
require(path.join(process.cwd(),"..","server","dist","database.js")); require(path.join(process.cwd(),"..","server","dist","database.js"));
async function main(){ async function main(){
await mainStarterFunction();
await sleep(5e3); await sleep(5e3);

@ -1,6 +1,6 @@
const sleep = (ms)=>{ const sleep = (ms)=>{
return new Promise(resolve=>{ return new Promise(resolve=>{
console.log(`${ms} should wait`); console.log(`${(ms/1000).toFixed(2)}s SHOULD WAIT`);
setTimeout(resolve,ms); setTimeout(resolve,ms);
}) })
} }

Loading…
Cancel
Save