polish timing
This commit is contained in:
1 parent
62a8de8b86
commit
aa2c489fb5
1 file changed
+1
-1
@@ -27,7 +27,7 @@ public readonly struct Lap {
|
|||||||
public List<SectorTime> Sectors { get; }
|
public List<SectorTime> Sectors { get; }
|
||||||
|
|
||||||
public override string ToString() {
|
public override string ToString() {
|
||||||
return $"Lap {Number} : {TotalTime():0.000} {String.Join(" ", Sectors.ConvertAll(s => s.ToString()))}";
|
return $"Lap {Number} : {TimeSpan.FromSeconds(TotalTime()):g} {String.Join(" ", Sectors.ConvertAll(s => s.ToString()))}";
|
||||||
}
|
}
|
||||||
|
|
||||||
double TotalTime() {
|
double TotalTime() {
|
||||||
|
|||||||
Reference in new issue
Block a user