elapsedMillis for Spark