How to convert System.currentTimeMillis(); to seconds?
System.currentTimeMillis();
long start6=System.currentTimeMillis(); System.out.println(counter.countPrimes(100000000)
Java 8 now provides the most concise method to get current Unix Timestamp:
Instant.now().getEpochSecond();