dotfiles/.vscode/extensions/saviorisdead.RustyCode-0.18.0/node_modules/sntp/examples/offset.js
Cyryl Płotnicki 2f946d6200 Add .vscode
2016-09-11 10:29:13 +02: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)
});
});