mirror of
https://github.com/mgerb/mywebsite
synced 2026-01-12 10:52:47 +00:00
updated bunch of file paths and changed the way posts are loaded
This commit is contained in:
16
node_modules/sntp/examples/offset.js
generated
vendored
Executable file
16
node_modules/sntp/examples/offset.js
generated
vendored
Executable file
@@ -0,0 +1,16 @@
|
||||
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)
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user