Created
January 23, 2018 15:40
-
-
Save suhininalex/eb567df0be96f0829221c88e5c06d2aa to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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