@20i/timesync
v1.1.9
Published
Small library to sync time to a time server
Downloads
50
Maintainers
Keywords
Readme
@20i/timesync
This library provides a way to get synchronized Time with a time server (20i time server by default)
import timesync from "@20i/timesync"
async function() {
await timesync.sync({ delay: 50 })
console.log("offsetMs", timesync.offsetMs)
console.log("moment", timesync.now().toISOString())
}