LocalDateTime ldStart= LocalDateTime.now();//记录开始时间
//中间是需要计算时间的代码段落
LocalDateTime ldEnd= LocalDateTime.now();//记录结束时间标签:ldEnd,du,JAVA,costSeconds,记录,LocalDateTime,now,运行 From: https://www.cnblogs.com/ltsgsh/p/17721471.html
Duration du=Duration.between(ldStart,ldEnd);
Long costSeconds = du.toMillis()/1000;
System.out.println("postNurseControl() cost: "+ costSeconds +" seconds ==========================================================");