Response time in Appium

Hi there,
I am running appium for an application automation. Currently I am automating 7 test cases. I wanted to know if there is any command available that will return the time taken to execute a single test case? If not that how can I get the response time of a single test case?
Any help will be appreciated. All my code is in Java and I am using Eclipse.
Thank you

TestNg will tell you the execution time:
12

Hi, Thank you for replying but I am currently working with appium. I found the solution. I am using these commands in the Java compiler
At the start of the code
long start= System.currentTimeMillis();

At the end of the program
long end = System.currentTimeMillis();
NumberFormat formatter4 = new DecimalFormat("#0.00000");
System.out.println(“Execution time is” + formatter4.format((end4 - start4) / 1000d) + " seconds");