|
@@ -1,5 +1,7 @@
|
|
package com.fdkankan.download.controller;
|
|
package com.fdkankan.download.controller;
|
|
|
|
|
|
|
|
+import cn.hutool.core.date.DateUtil;
|
|
|
|
+import cn.hutool.core.date.TimeInterval;
|
|
import cn.hutool.system.HostInfo;
|
|
import cn.hutool.system.HostInfo;
|
|
import cn.hutool.system.SystemUtil;
|
|
import cn.hutool.system.SystemUtil;
|
|
import cn.hutool.system.oshi.OshiUtil;
|
|
import cn.hutool.system.oshi.OshiUtil;
|
|
@@ -62,7 +64,10 @@ public class BatchDownloadController {
|
|
|
|
|
|
@GetMapping("testlaser")
|
|
@GetMapping("testlaser")
|
|
public ResultData testlaser(String num) throws Exception {
|
|
public ResultData testlaser(String num) throws Exception {
|
|
|
|
+ TimeInterval timer = DateUtil.timer();
|
|
laserService.downloadHandler(num);
|
|
laserService.downloadHandler(num);
|
|
|
|
+ log.info("激光生成时间耗时, num:{}, time:{}", num, timer.intervalSecond());
|
|
|
|
+
|
|
return ResultData.ok(1);
|
|
return ResultData.ok(1);
|
|
// return ResultData.ok(snService.list());
|
|
// return ResultData.ok(snService.list());
|
|
}
|
|
}
|