Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Jasmine Grant   on Nov 27 In Java Category.

  
Question Answered By: Holly Brown   on Nov 27

Try this,

..
long etime=System.currentTimeMillis();
boolean success=processYourAction();
etime= System.currentTimeMillis()-etime;
System.out.println("elapsed time  for my aciton:"+ etime);
..
..

Share: 

 

This Question has 6 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on Java measuring time Or get search suggestion and latest updates.


Tagged: