Stopwatch stopwatch =newStopwatch().start(); //do something test for(int i =0; i <10000; i++){
} long nanos = stopwatch.elapsed(TimeUnit.NANOSECONDS); System.out.println(nanos);
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/15890.html
Stopwatch stopwatch =newStopwatch().start(); //do something test for(int i =0; i <10000; i++){
} long nanos = stopwatch.elapsed(TimeUnit.NANOSECONDS); System.out.println(nanos);
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/15890.html