Matjaz Mesnjak da65f00f6c Initial commit.
2017-09-20 23:19:33 +02:00

17 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)
});
});