1
0
Fork 0
waifurudor.de/node_modules/sntp/examples/offset.js
2022-04-02 18:40:13 -04:00

16 lines
321 B
JavaScript
Executable file

var Sntp = require('../lib');
// Request offset once
Sntp.offset(function (err, offset) {
console.log(offset); // New (served fresh)
// Request offset again
Sntp.offset(function (err, offset) {
console.log(offset); // Identical (served from cache)
});
});