JavaでSystem.nanoTimeを使って処理時間を計測します
long start = System.nanoTime();
// Some processing
long end = System.nanoTime();
System.out.println("Time:" + (end - start) / 1000000f + "ms");
Go to list of users who liked
More than 5 years have passed since last update.
JavaでSystem.nanoTimeを使って処理時間を計測します
long start = System.nanoTime();
// Some processing
long end = System.nanoTime();
System.out.println("Time:" + (end - start) / 1000000f + "ms");
Register as a new user and use Qiita more conveniently
Go to list of users who liked