How to convert System.currentTimeMillis(); to seconds?
System.currentTimeMillis();
long start6=System.currentTimeMillis(); System.out.println(counter.countPrimes(100000000)+" for "+start6);
The console shows me 5761455 for 1307816001290. I can't read how many seconds that is.
5761455 for 1307816001290
Any help?
like so:
(int)(milliseconds / 1000)
TimeUnit.SECONDS.convert(start6, TimeUnit.MILLISECONDS);