long hogeStart = System.currentTimeMillis();
//Processing you want to measure
long hogeEnd = System.currentTimeMillis();
long hogeTime = hogeEnd - hogeStart;
System.out.println("processing time: " hogeTime + " ms");
--Register the following as a snippet with Clipy etc.
long hogeStart = System.currentTimeMillis();
long hogeEnd = System.currentTimeMillis();
long hogeTime = hogeEnd - hogeStart;
--The process you want to measure is inserted between lines.
--If you want to measure multiple processes, replace hoge
with any process name you want to measure.
Recommended Posts