long startTime = System.currentTimeMillis(); ...... long endTime = System.currentTimeMillis(); logger.info("Time elapsed:" + ((double)endTime - (double)startTime)/1000 + "s.");--END-- 2019年10月5日15:11:00