I am learning scala, and when testing small codes I saw the delays were wrong.
For example, just doing
val start = System.currentTimeMillis()
println((System.currentTimeMillis()-start)+"ms")
prints 25ms.
Futhermore, create a instance of a simple class takes way too long (creating a playing card with a number and type in parameter takes 15 ms the first time, then less than 1 ms the other times).
Is there something that I missed?
Thanks!