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");