22 lines
393 B
Kotlin
22 lines
393 B
Kotlin
package moe.kageru.spektacles
|
|
|
|
import java.time.Month
|
|
import kotlin.system.measureTimeMillis
|
|
|
|
fun main() {
|
|
val time = measureTimeMillis {
|
|
spektacle()
|
|
}
|
|
println("Time spent: $time ms")
|
|
}
|
|
|
|
fun spektacle() {
|
|
IoHandler.readFile("test.log")
|
|
.parse()
|
|
.filterUsers("kageru_")
|
|
.filterModes(UserMode.OP)
|
|
.filterMonths(Month.APRIL)
|
|
.heatMapByHour()
|
|
.let(::println)
|
|
}
|