Skip to content

Latest commit

 

History

History
14 lines (9 loc) · 199 Bytes

README.md

File metadata and controls

14 lines (9 loc) · 199 Bytes

node-wait

Provide a function to block js thread for given time.

const wait = require('node-wait')

const start = Date.now()
wait(1000)

console.log(Date.now() - start)
// 1003