Is System.currentTimeMillis() the best measure of time performance in Java?

后端 未结 7 514
别跟我提以往
别跟我提以往 2020-12-31 04:34

Is System.currentTimeMillis() the best measure of time performance in Java? Are there any gotcha\'s when using this to compare the time before action is taken to the time af

相关标签:
7条回答
  • 2020-12-31 05:28

    You may use Stopwatch from Google Guava which makes measuring time super-easy.

    0 讨论(0)
提交回复
热议问题