using kotlin's newfangled 'x in xs.indices' instead of 'x in 0 until xs.size'

This commit is contained in:
minjaesong
2020-10-21 17:42:58 +09:00
parent 2437fed1ea
commit 0c48b9dce8
12 changed files with 25 additions and 25 deletions

View File

@@ -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]}")
}
}