public class SystemClock
extends java.lang.Object
The call of System.currentTimeMillis() is much more time-consuming than the new normal object (the amount of time is higher than I have not tested, some say it is about 100 times)
System.currentTimeMillis() is slow because it has to deal with the system once
The background periodically updates the clock. When the JVM exits, the thread automatically reclaims
Copyright © 2021. All rights reserved.