aboutsummaryrefslogtreecommitdiff
path: root/deps/npm/node_modules/sntp/examples/time.js
diff options
context:
space:
mode:
Diffstat (limited to 'deps/npm/node_modules/sntp/examples/time.js')
-rwxr-xr-xdeps/npm/node_modules/sntp/examples/time.js24
1 files changed, 0 insertions, 24 deletions
diff --git a/deps/npm/node_modules/sntp/examples/time.js b/deps/npm/node_modules/sntp/examples/time.js
deleted file mode 100755
index ff2589f75e..0000000000
--- a/deps/npm/node_modules/sntp/examples/time.js
+++ /dev/null
@@ -1,24 +0,0 @@
-var Sntp = require('../lib');
-
-// All options are optional
-
-var options = {
- host: 'nist1-sj.ustiming.org', // Defaults to pool.ntp.org
- port: 123, // Defaults to 123 (NTP)
- resolveReference: true, // Default to false (not resolving)
- timeout: 1000 // Defaults to zero (no timeout)
-};
-
-// Request server time
-
-Sntp.time(options, function (err, time) {
-
- if (err) {
- console.log('Failed: ' + err.message);
- process.exit(1);
- }
-
- console.log(time);
- console.log('Local clock is off by: ' + time.t + ' milliseconds');
- process.exit(0);
-});