srctree

Robin Linden parent 5c130ece 2ee50279
Use a more correct iteration time for the Tox thread

inlinesplit
domain/src/main/kotlin/tox/Tox.kt added: 6, removed: 2, total 4
@@ -112,8 +112,12 @@ class Tox @Inject constructor(
Log.e(TAG, e.toString())
}
}
 
val before = System.currentTimeMillis()
tox.iterate()
delay(tox.iterationInterval())
val timeTaken = System.currentTimeMillis() - before
val iterationInterval = tox.iterationInterval()
delay(iterationInterval - timeTaken)
}
started = false
}