perf[net]: 优化StopWatch的打印格式,保留两位小数

This commit is contained in:
jaysunxiao committed 2021-08-27 17:23:00 +08:00
1 parent be3ceab08f
commit 8acaf7eb57
4 files changed
+19 -7

No files matched your search

@@ -104,7 +104,7 @@ public class NetContext implements ApplicationListener<ApplicationContextEvent>,
instance.packetService.init();
instance.configManager.initRegistry();
logger.info("net start success and cost [{}] second", stopWatch.costSecond());
logger.info("Net started successfully and cost [{}] seconds", stopWatch.costSeconds());
} else if (event instanceof ContextClosedEvent) {
shutdownBefore();
shutdownAfter();