spektacles/src/main/kotlin/moe/kageru/spektacles/Spektacles.kt

22 lines
393 B
Kotlin
Raw Normal View History

2019-11-26 10:50:38 +01:00
package moe.kageru.spektacles
2019-11-26 13:01:29 +01:00
import java.time.Month
2019-11-26 10:50:38 +01:00
import kotlin.system.measureTimeMillis
fun main() {
2019-11-26 13:01:29 +01:00
val time = measureTimeMillis {
spektacle()
2019-11-26 10:50:38 +01:00
}
2019-11-26 13:01:29 +01:00
println("Time spent: $time ms")
2019-11-26 10:50:38 +01:00
}
2019-11-26 13:01:29 +01:00
fun spektacle() {
IoHandler.readFile("test.log")
.parse()
.filterUsers("kageru_")
.filterModes(UserMode.OP)
.filterMonths(Month.APRIL)
.heatMapByHour()
.let(::println)
2019-11-26 10:50:38 +01:00
}