Is there a way to find out the time since the JVM started?
Of course, other than starting a timer somewhere near the beginning of main
, because in my scenario I am writing library code and the requirement that something be called immediately after startup is a too burdensome.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…