|
@@ -247,21 +247,7 @@ namespace OTSModelSharp
|
|
|
|
|
|
pSmplMeasure.DoMeasureForOneSample();
|
|
|
|
|
|
- // check if measurement is successful
|
|
|
- //if (pSample.GetMsrStatus().GetStatus() == OTS_MSR_SAMPLE_STATUS.PAUSED)
|
|
|
- //{// record end time
|
|
|
- // m_ThreadStatus.SetStatus(OTS_MSR_THREAD_STATUS.PAUSED);
|
|
|
- // m_ThreadStatus.ComputeTime(OTS_THREAD_TIME_TYPE.STOPPED);
|
|
|
-
|
|
|
- // // update thread measure status class, let the main thread know that this sample measurement stopped
|
|
|
- // ST_MSTMsg MsgSmpStop = new ST_MSTMsg(m_ThreadStatus);
|
|
|
- // MsgSmpStop.InitThreadPausedMsg();
|
|
|
- // SendMessageToMeasureGUI(MsgSmpStop);
|
|
|
-
|
|
|
-
|
|
|
- // ThreadOver();
|
|
|
- // return;
|
|
|
- //}
|
|
|
+
|
|
|
if (pSample.GetMsrStatus().GetStatus() == OTS_MSR_SAMPLE_STATUS.STOPPED)
|
|
|
{// record end time
|
|
|
m_ThreadStatus.SetStatus(OTS_MSR_THREAD_STATUS.STOPPED);
|