title: How to measure the execution time of a query on Spark
body: <p>I need to measure the execution time of query on Apache spark (Bluemix).
  What I tried:</p>
  
  <pre><code>import time
  
  startTimeQuery = time.clock()
  df = sqlContext.sql(query)
  df.show()
  endTimeQuery = time.clock()
  runTimeQuery = endTimeQuery - startTimeQuery
  </code></pre>
  
  <p>Is it a good way? The time that I get looks too small relative to when I see the table. </p>