public override string ToString() { StringBuilder builder = new StringBuilder(); builder.AppendLine($"--- Status of current /rn command ---"); builder.AppendLine($"Issued by: {IssuedBy}"); builder.AppendLine($"Time spend (mm:ss): {DateTimeOffset.UtcNow.Subtract(StartedAt).ToString(@"mm\:ss")}"); builder.AppendLine($"Current status: {CurrentCount}/{FinalCount}"); builder.AppendLine($"Avg. Time per found nation (mm:ss): {AvgTimePerFoundNation.ToString(@"mm\:ss")}"); builder.AppendLine($"Finish expected in approx. (mm:ss): {ExpectedIn().ToString(@"mm\:ss")}"); builder.AppendLine($"--- End of status ---"); return(builder.ToString()); }
internal TimeSpan ExpectedIn() { var remaining = FinalCount - CurrentCount; return(AvgTimePerFoundNation.Multiply(remaining)); }