2026-04-10 16:14:31 -05:00
|
|
|
package solutions.tretter.mindmachine.session
|
2026-03-10 23:34:07 -05:00
|
|
|
|
|
|
|
|
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()
|