This commit is contained in:
Guoqs
2024-05-28 10:51:18 +08:00
parent eee291d4c0
commit 2fdca99608
2 changed files with 1 additions and 3 deletions

View File

@@ -112,7 +112,6 @@ public class IdUtils {
while (id > 100000000000L) { while (id > 100000000000L) {
id /= 10; id /= 10;
} }
// Integer num = Integer.parseInt(id + "");
return String.valueOf(id); return String.valueOf(id);
} }

View File

@@ -230,8 +230,7 @@ public class SnowflakeIdWorker {
}).start(); }).start();
} }
Thread.sleep(3000); Thread.sleep(3000);
log.info("map.size():{}", map.size()); log.info("map.size():{}, 耗时:{}", map.size(), (System.currentTimeMillis() - beginTime));
log.info("耗时:" + (System.currentTimeMillis() - beginTime));
} }
} }