var ut = 0L
val startY = 1000
val endY = 3000
ut = measureTimeMillis {
val ec = EightChar("癸亥", "丙辰", "己丑", "乙亥")
val res = ec.getSolarTimes(startY, endY)
println(res.size)
println(res)
}
println("====use time:${ut} ms")
ut = measureTimeMillis {
val ec = EightChar("癸亥", "丙辰", "己丑", "丁亥")
val res = ec.getSolarTimes(startY, endY, true)
println(res.size)
println(res)
}
var ut = 0L
val startY = 1000
val endY = 3000
ut = measureTimeMillis {
val ec = EightChar("癸亥", "丙辰", "己丑", "丁亥")
val res = ec.getSolarTimes(startY, endY)
println(res.size)
println(res)
}
println("====use time:${ut} ms")
ut = measureTimeMillis {
val ec = EightChar("癸亥", "丙辰", "己丑", "丁亥")
val res = ec.getSolarTimes(startY, endY, false)
println(res.size)
println(res)
}
println("====use time:${ut} ms")
test
with log
with log