snapshot current state before gitea sync

This commit is contained in:
2026-02-18 10:50:25 +01:00
parent 4b14d06bc8
commit 4f6ff705cd
31 changed files with 228 additions and 220 deletions
+17
View File
@@ -0,0 +1,17 @@
import Foundation
enum SyncClock {
private static var hostOffset: TimeInterval = 0
static func uptime() -> TimeInterval {
ProcessInfo.processInfo.systemUptime
}
static func setHostOffset(hostUptime: TimeInterval, peerUptime: TimeInterval) {
hostOffset = hostUptime - peerUptime
}
static func convert(hostUptime: TimeInterval) -> TimeInterval {
hostUptime - hostOffset
}
}