提交 7c538333 编写于 作者: K Kohsuke Kawaguchi

exposed another stat method

上级 4f900f60
......@@ -403,6 +403,15 @@ public class Executor extends Thread implements ModelObject {
return System.currentTimeMillis() - startTime;
}
/**
* Returns the number of milli-seconds the currently executing job spent in the queue
* waiting for an available executor. This excludes the quiet period time of the job.
* @since 1.440
*/
public long getTimeSpentInQueue() {
return startTime - workUnit.context.item.buildableStartMilliseconds;
}
/**
* Gets the string that says how long since this build has started.
*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册