Is there any way to get execution time in the program? 
Actually I got from log 
 INFO spark.SparkContext: Job finished: collect at Kmeans.scala:109, took 0.242050892 s
But I want to use execution time in my code. Please help me