java 测试程序执行时间

毫秒

long startTime = System.currentTimeMillis();

纳秒

long startTime=System.nanoTime();

你可能感兴趣的:(java 测试程序执行时间)