long startTime=System.currentTimeMillis();
long endTime=System.currentTimeMillis();
float excTime=(float)(endTime-startTime)/1000;
system.print.out("执行时间:"+excTime+"s");
获取java后台服务执行时间
最新推荐文章于 2024-05-16 19:23:40 发布
long startTime=System.currentTimeMillis();
long endTime=System.currentTimeMillis();
float excTime=(float)(endTime-startTime)/1000;
system.print.out("执行时间:"+excTime+"s");