mirror of
https://github.com/Wan-Video/Wan2.1.git
synced 2025-07-14 11:40:10 +00:00
17 lines
321 B
JavaScript
Executable File
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)
|
|
});
|
|
});
|
|
|