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