Crates.io | ya-world-time |
lib.rs | ya-world-time |
version | 0.1.3 |
source | src |
created_at | 2023-04-05 20:43:37.331248 |
updated_at | 2023-04-09 20:32:42.426724 |
description | Library for getting current time from the world clock |
homepage | |
repository | |
max_upload_size | |
id | 831391 |
size | 16,080 |
Library for keeping time as precise as possible
#provide list of time servers
YA_WORLD_TIME_SERVER_HOSTS=time.google.com;ntp.qix.ca;ntp.nict.jp;pool.ntp.org;time.cloudflare.com;ntp.fizyka.umk.pl;time.apple.com;time.fu-berlin.de;time.facebook.com
#max number of requests to send at once
YA_WORLD_TIME_MAX_AT_ONCE=50
#max number of servers to process
YA_WORLD_TIME_MAX_TOTAL=100
#max request timeout in milliseconds, otherwise drop request
YA_WORLD_TIME_MAX_TIMEOUT=300