merged
authorwenzelm
Fri, 03 Nov 2023 10:13:41 +0100
changeset 78886 b82c2f801f2c
parent 78884 0233d5a5a4ca (diff)
parent 78885 9d0faaa77e5d (current diff)
child 78887 6996a20a1b7c
child 78888 95bbf9a576b3
merged
--- a/src/Pure/Tools/build_schedule.scala	Fri Nov 03 10:12:34 2023 +0100
+++ b/src/Pure/Tools/build_schedule.scala	Fri Nov 03 10:13:41 2023 +0100
@@ -525,10 +525,14 @@
     override def next_jobs(state: Build_Process.State): List[String] =
       if (cache.is_current(state)) cache.configs.map(_.job_name)
       else {
+        val start = Time.now()
         val next = scheduler.next(timing_data, state)
         val estimate = Date(Time.now() + scheduler.build_duration(timing_data, state))
-        progress.echo_if(build_context.master && cache.is_current_estimate(estimate),
-          "Estimated completion: " + estimate)
+        val elapsed = Time.now() - start
+
+        val timing_msg = if (elapsed.is_relevant) " (in " + elapsed.message + ")" else ""
+        progress.echo_if(build_context.master && !cache.is_current_estimate(estimate),
+          "Estimated completion: " + estimate + timing_msg)
 
         val configs = next.filter(_.node_info.hostname == hostname)
         cache = Cache(state, configs, estimate)