How reliable is TrueTime to get device-independent time?

I recently found a library called TrueTime to get a time that is independent of device time. It uses NTP to get time.

https://github.com/instacart/TrueTime.swift

Since this library is mainly designed for fast 3. But I found a message that made some changes to the files to make it fast. 4.

https://github.com/instacart/TrueTime.swift/issues/39

Since I use swift and use pod for this library. I unlocked the containers and made changes to the library to get things done with fast 4.

How reliable is this library?

My problems -

  • Apple approval after submitting the application.

  • Support for fast and fast versions of iOS.

Are there any better alternatives to this library?

+5
source share
1 answer

Apple will definitely not give up on this. This is not a review recommendation . I even have an application that uses TrueTime in the application store.

As for reliability, if you mean reliability, "how much is it right to get the correct true time", then it is completely reliable. It looks like the library is getting time from time.apple.com . It seems to be from Apple, so I would say that you can rely on it.

If you mean reliability, β€œhow reliable is successful query execution”, it depends on the user: the user's Internet connection, errors in the TrueTime library, etc. According to README,

  • Reachability events are automatically counted to pause / start requests.

  • UDP requests are executed in parallel, with a default limit of 5 concurrent calls. If this fails, we will default to up to 3 times.

So, how the requests will behave.

+2
source

Source: https://habr.com/ru/post/1274943/


All Articles