Skip to content
Snippets Groups Projects
Commit b3ae5b25 authored by Karen Feng's avatar Karen Feng
Browse files

Shows time the app has been running

parent 999eaac7
No related branches found
No related tags found
No related merge requests found
......@@ -128,6 +128,8 @@ class SparkContext(
private[spark] val ui = new SparkUI(this)
ui.bind()
val startTime = System.currentTimeMillis()
// Add each JAR given through the constructor
if (jars != null) {
jars.foreach { addJar(_) }
......
......@@ -54,7 +54,11 @@ private[spark] class IndexPage(parent: JobProgressUI) {
val summary: NodeSeq =
<div>
<ul class="unstyled">
<li>
<li>
<strong>Duration: </strong>
{parent.formatDuration(now - listener.sc.startTime)}
</li>
<li>
<strong>CPU time: </strong>
{parent.formatDuration(listener.totalTime + activeTime)}
</li>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment