UX: seconds flash interval UI, hidden active controls, back-to-setup flow
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
package com.mindmachine.mvp.session
|
||||
|
||||
import kotlin.math.roundToInt
|
||||
|
||||
private const val MILLIS_PER_SECOND = 1000f
|
||||
|
||||
fun flashIntervalMsToSeconds(ms: Int): Float = ms / MILLIS_PER_SECOND
|
||||
|
||||
fun flashIntervalSecondsToMs(seconds: Float): Int = (seconds * MILLIS_PER_SECOND).roundToInt()
|
||||
Reference in New Issue
Block a user