lyft / Kronos-Android

An Open Source Kotlin SNTP library
Apache License 2.0
254 stars 19 forks source link

When is the Kronos "automatic refresh" triggered? Not mentioned. #37

Open agforte opened 4 years ago

agforte commented 4 years ago

The README says that Kronos attempts a "refresh" every minWaitTimeBetweenSyncMs. Is this "automatic refresh" process initiated by the first call to getCurrentTime() or when?

xgouchet commented 4 years ago

By the look of the code, whenever you call getCurrentTime(), if the last update is out of date, a new sync is requested in the background.