mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
19 lines
198 B
TypeScript
19 lines
198 B
TypeScript
import Sntp = require('sntp');
|
|
|
|
const options = {
|
|
host: 'abc',
|
|
port: 123,
|
|
};
|
|
|
|
Sntp.now();
|
|
|
|
Sntp.start(options);
|
|
Sntp.start();
|
|
|
|
Sntp.stop();
|
|
|
|
Sntp.time(options);
|
|
Sntp.time();
|
|
|
|
Sntp.offset();
|