Skip to content

Instantly share code, notes, and snippets.

Created November 16, 2016 21:13
What would you like to do?
import java.util.*;
class A {
public static void main(String args[]) {
long start, finish;
start = System.nanoTime();
//List<Integer> result = Stream.iterate(1, n -> n + 1)
long x = LongStream.range(0, 10000000000L)
finish = System.nanoTime();
System.out.println((finish - start)/1000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment