public class TestGetLastModifiedTime implements Runnable {
private static final Path PATH = Paths.get("primes1.txt").toAbsolutePath();
private static final ScheduledExecutorService SCHEDULER = Executors.newScheduledThreadPool(1);
public static void main(String[] args) {
SCHEDULER.scheduleAtFixedRate(() -> getLastModifiedTime(), 0, 10, TimeUnit.MILLISECONDS);
}