TrueTime.swift
TrueTime.swift copied to clipboard
NTP library for Swift and Objective-C. Get the true time impervious to device clock changes.
Hello, is it possible to add a package description file for Swift Package Manager? I've done something similar: ``` // swift-tools-version:5.1 import PackageDescription let package = Package( name: "TrueTime", products:...
Hello, I am trying to add the TrueTime library to my Kotlin/Multiplatform (iOS level) project without success. I tried through: 1. cocopods 2. carthage 3. wcarthage The cocopods way: Podfile:...
### What did you change and why? - Added support for `Swift Package Manager` - Modified the folder structure to make it Swift PM compatible - Deleted `Sources/TrueTime.h` and `Sources/TrueTime.m`...
We have added test cases in our app. While running test cases, sometime this precondition get failed even-though network reachability is there.
When adding through Carthage on XCode 11.7
installing the app always goes to failure block never comes to success block Error! Error Domain=com.instacart.TrueTimeErrorDomain Code=2 UserInfo={NSLocalizedDescription=The connection timed out.} this will log every time
@msanders Logs: https://gist.github.com/otymartin/4ffb1be00f09fb4e2673a3824f1a14ab
Thread 2: Precondition failed: Already started
switch result { case let .success(referenceTime): BatteryStatusHandler.refTime = referenceTime let ud = UserDefaults.standard ud.set(referenceTime, forKey: "NTPTime") case let .failure(error): print("Error! \(error)") } In the above code, I tried to set...
Hi there, thanks for the library! Is it possible to get an error range for time measurements? Like: 07:00 +/- 100 ms