Skip to content

Instantly share code, notes, and snippets.

import java.math.BigDecimal;
import java.util.*;
import java.util.stream.Collectors;
import java.util.stream.IntStream;
/**
* Created by Anthony on 11/10/2014.
*/
public class Teste {
@aaccioly
aaccioly / Results
Last active August 29, 2015 13:58
Time functions benchmark
--------------------------------------------
System.nanoTime()
--------------------------------------------
Avg Time: 0.99
Max Time: 1.90
Min Time: 0.51
--------------------------------------------
System.currentTimeMillis()
--------------------------------------------
Avg Time: 1.00