Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- object ScalaTest extends App {
- val t0 = System.nanoTime()
- val fact = (BigInt(2) to 100000).par.product
- val t1 = System.nanoTime()
- println(fact)
- println("Elapsed time: " + (t1 - t0) * 1e-9 + " sec")
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement