Add milliSecFromMidnight in Profile interface and Autotune LTag

This commit is contained in:
Philoul 2022-05-05 21:58:32 +02:00
parent a708c45bfb
commit b1165caef3
2 changed files with 5 additions and 0 deletions

View file

@ -148,6 +148,10 @@ interface Profile {
return (passed / 1000).toInt()
}
fun milliSecFromMidnight(date: Long): Long {
val passed = DateTime(date).millisOfDay.toLong()
return passed
}
/*
* Units conversion
*/

View file

@ -5,6 +5,7 @@ enum class LTag(val tag: String, val defaultValue : Boolean = true, val requires
APS("APS"),
AUTOSENS("AUTOSENS", defaultValue = false),
AUTOMATION("AUTOMATION"),
AUTOTUNE("AUTOTUNE", defaultValue = false),
BGSOURCE("BGSOURCE"),
CONFIGBUILDER("CONFIGBUILDER"),
CONSTRAINTS("CONSTRAINTS"),