@smarterservices/smarterclock
Advanced tools
Comparing version 1.0.6 to 1.0.7
{ | ||
"name": "@smarterservices/smarterclock", | ||
"version": "1.0.6", | ||
"version": "1.0.7", | ||
"description": "store of delta values between ntp time and local time to get an accurate sync time", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -39,7 +39,7 @@ # SmarterClock | ||
The clock constructor can accept the following options. | ||
The clock constructor can accept the following options. **all options are optional** | ||
* ```syncDelay``` (number) : The time (in seconds) between each call to an NTP server to get the latest UTC timestamp. Defaults to 300 (which is 5 minutes). | ||
* ```history``` (number): The nubmer of delta values that should be maintained and used for calculating your local time drift. Defaults to 10. | ||
* ```servers``` (array) : An array of NTP servers to use when looking up time. Each value in the array should be an object with the keys ```server``` and ```port```. | ||
* ```servers``` (array) : An array of NTP servers to use when looking up time. Each value in the array should be an object with the keys ```server``` and ```port```. Defaults to pool.ntp.org. | ||
@@ -46,0 +46,0 @@ ### Example |
7222