Remaining time displayed for all tests

This commit is contained in:
Milan Hanajik
2015-02-21 20:03:33 +01:00
parent 08e53c090e
commit 82a72670a6
6 changed files with 27 additions and 6 deletions
@@ -230,6 +230,7 @@ namespace TBF.BenchControl.TestMethods.FlyingStartCollectionMethod
bool firstTime = true; /// To reset sums for averaging
ResetAveragedData();
int estimtdEndTime = StateMachine.Time + (int)tstRslt.TstTime;
/// Measurement loop - begin
while (true)
@@ -242,6 +243,9 @@ namespace TBF.BenchControl.TestMethods.FlyingStartCollectionMethod
case Event.MeasurementCompleted: goto test_completed;
}
int remainingTime = Math.Max(estimtdEndTime - StateMachine.Time, 0);
Bridge.OnActivity(this, string.Format("{0} ... {1} s", Strings.Test_in_progress, remainingTime));
if (firstTime)
{
firstTime = false; /// Do the following only once