Tags

, ,

By Coding
========

// capture first time for measuring
long timeA = System.currentTimeMillis();

// do your business

// capture second time for measuring
long timeB = System.currentTimeMillis();

// Calculate the different in milliseconds.
System.out.println(“It took you “+(timeB-timeA)+”ms. for ….”);

By Eclipse Profiler
===============

http://www.eclipse.org/tptp/index.php

Advertisements