mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-12 11:34:05 +09:00
using kotlin's newfangled 'x in xs.indices' instead of 'x in 0 until xs.size'
This commit is contained in:
@@ -53,7 +53,7 @@ class RGBtoXYZBenchmark {
|
||||
|
||||
// print out captured data
|
||||
println("with LUT\tno LUT\tmult")
|
||||
for (i in 0 until timer1.size) {
|
||||
for (i in timer1.indices) {
|
||||
println("${timer1[i]}\t${timer2[i]}\t${timer1[i].toFloat() / timer2[i]}")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user