mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
[Logger] Add days count, if needed
This commit is contained in:
@@ -115,7 +115,18 @@ namespace SabreTools.Helper
|
|||||||
}
|
}
|
||||||
|
|
||||||
TimeSpan span = DateTime.Now.Subtract(_start);
|
TimeSpan span = DateTime.Now.Subtract(_start);
|
||||||
string total = span.ToString(@"hh\:mm\:ss");
|
|
||||||
|
// Special case for multi-day runs
|
||||||
|
string total = "";
|
||||||
|
if (span >= TimeSpan.FromDays(1))
|
||||||
|
{
|
||||||
|
total = span.ToString(@"d\:hh\:mm\:ss");
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
total = span.ToString(@"hh\:mm\:ss");
|
||||||
|
}
|
||||||
|
|
||||||
if (!_tofile)
|
if (!_tofile)
|
||||||
{
|
{
|
||||||
Console.WriteLine("Total runtime: " + total);
|
Console.WriteLine("Total runtime: " + total);
|
||||||
|
|||||||
Reference in New Issue
Block a user