JAVAで高精度タイマを使う
public static void main(String[] args) { long before = System.nanoTime(); long now; for (int i = 0; i < 10; i++) { try { Thread.sleep(100); } catch (Exception e) { e.printStackTrace(); } now = System.nanoTime(); System.out.println("" + (now - before)/1000); before = now; } }