Skip to content

Instantly share code, notes, and snippets.

@suhininalex
Created January 23, 2018 15:40
Show Gist options
  • Save suhininalex/eb567df0be96f0829221c88e5c06d2aa to your computer and use it in GitHub Desktop.
Save suhininalex/eb567df0be96f0829221c88e5c06d2aa to your computer and use it in GitHub Desktop.
fun main(args: Array<String>) {
var r = 0f
val x = 1.43f
val y = 100.4232f
val time = measureTimeMillis {
for (i in 1..1000000){
r += x/y;
}
}
println(time)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment