timing - How do I time a method's execution in Java? - Stack Overflow

timing - How do I time a method's execution in Java? - Stack Overflow

瀏覽:1240
日期:2025-04-26
This (or using System.currentTimeMillis()) seems to be the way it's usually done in Java...that I've seen anyway. It still mildly suprises me that there's no spiffy built-in class, like Timer t = new Timer(); String s = t.getElapsed(format); etc... – Ogre...看更多