Possible Duplicate:
Measure execution time for a Java method
I have an application by which i need to send a large number of sms with in a particulate time limit.Sending sms is done. Now i need to calculate how much time it is actually taking to complete the execution.Can some one help me by giving some code of calculating the execution time.What is the procedure to fetch system time.And my program will get to know that execution is complete.How i will calculate the difference between starting time and ending time of sending sms.Because when sms is complete my program may still be executing. Thanks Koushik