Remaining time displayed for all tests
This commit is contained in:
+4
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user