File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
debug/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/console Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -337,12 +337,16 @@ protected String computeName() {
337
337
DateFormat dateTimeFormat = DateFormat .getDateTimeInstance (DateFormat .MEDIUM , DateFormat .MEDIUM );
338
338
Duration elapsedTime = Duration .between (launchTime != null ? launchTime .toInstant () : Instant .now (),
339
339
terminateTime != null ? terminateTime .toInstant () : Instant .now ());
340
- String elapsedString = String .format ("%d:%02d:%02d.%03d" , elapsedTime .toHours (), //$NON-NLS-1$
341
- elapsedTime .toMinutesPart (), elapsedTime .toSecondsPart (), elapsedTime .toMillisPart ());
340
+ String elapsedFormat = "%d:%02d:%02d.%03d" ; //$NON-NLS-1$
342
341
if (terminateTime == null ) {
342
+ // refresh every second:
343
343
DebugUIPlugin .getStandardDisplay ().asyncExec (
344
344
() -> DebugUIPlugin .getStandardDisplay ().timerExec (1000 , () -> resetName (false )));
345
+ // pointless to update milliseconds:
346
+ elapsedFormat = "%d:%02d:%02d" ; //$NON-NLS-1$
345
347
}
348
+ String elapsedString = String .format (elapsedFormat , elapsedTime .toHours (),
349
+ elapsedTime .toMinutesPart (), elapsedTime .toSecondsPart (), elapsedTime .toMillisPart ());
346
350
if (launchTime != null && terminateTime != null ) {
347
351
String launchTimeStr = dateTimeFormat .format (launchTime );
348
352
// Check if process started and terminated at same day. If so only print the
You can’t perform that action at this time.
0 commit comments