[chronojump] CairoGraphRaceAnalyzer show time needed to arrive at minAccel



commit 8fd97a16502b408d893265ff7761ff4d986b9585
Author: Xavier de Blas <xaviblas gmail com>
Date:   Wed May 25 12:57:55 2022 +0200

    CairoGraphRaceAnalyzer show time needed to arrive at minAccel

 src/gui/cairo/raceAnalyzer.cs | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/src/gui/cairo/raceAnalyzer.cs b/src/gui/cairo/raceAnalyzer.cs
index 2c5610209..bc302a7a5 100644
--- a/src/gui/cairo/raceAnalyzer.cs
+++ b/src/gui/cairo/raceAnalyzer.cs
@@ -346,7 +346,9 @@ public class CairoGraphRaceAnalyzer : CairoXY
                                g.LineTo (xTimeAtEnoughAccelMark, topMargin);
                                g.Stroke ();
                                printText(xTimeAtEnoughAccelMark+2, topMargin * 3/4,
-                                               0, textHeight-3, string.Format("a >= {0} m/s^2", minAccel), 
g, alignTypes.LEFT);
+                                               0, textHeight-3, string.Format("a >= {0} m/s^2 at {1} s",
+                                                       minAccel, Math.Round(timeAtEnoughAccelMark/1000000.0, 
3)),
+                                               g, alignTypes.LEFT);
                        }
                }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]