public class Test 
{
	public static void main(String[] args)
	{
	//	long startTime = System.nanoTime();			 	// 纳秒级
		long startTime = System.currentTimeMillis();   	// 毫秒级

	//  测试的代码
		
	//	long estimatedTime = System.nanoTime() - startTime;
		long estimatedTime=System.currentTimeMillis() - startTime;
		System.out.println(estimatedTime);
	}
}

相关文章:

  • 2021-11-08
  • 2021-03-30
  • 2021-07-06
猜你喜欢
  • 2021-09-26
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-28
  • 2021-12-24
相关资源
相似解决方案