We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d09ae6c commit a6b2e97Copy full SHA for a6b2e97
src/Views/CommandLogTime.cs
@@ -72,10 +72,14 @@ private static string GetDisplayText(ViewModels.CommandLog log)
72
{
73
var endTime = log.IsComplete ? log.EndTime : DateTime.Now;
74
var duration = endTime - log.StartTime;
75
- var durationStr = duration.TotalSeconds >= 1
76
- ? $"{duration.TotalSeconds:G3} s"
77
- : $"{duration.TotalMilliseconds:G3} ms";
78
- return $"{log.StartTime:T} ({durationStr})";
+
+ if (duration.TotalMinutes >= 1)
+ return $"{log.StartTime:T} ({duration.TotalMinutes:G3} minutes)";
79
+ if (duration.TotalSeconds >= 1)
80
+ return $"{log.StartTime:T} ({duration.TotalSeconds:G3} s)";
81
82
+ return $"{log.StartTime:T} ({duration.TotalMilliseconds:G3} ms)";
83
}
84
85
private Timer _refreshTimer = null;
0 commit comments