| 39 | { |
| 40 | public: |
| 41 | FailureInfo() |
| 42 | { |
| 43 | gettimeofday(&_start, NULL); |
| 44 | _totalSlot = totalDuration / windowSize; // INtegral multiple |
| 45 | _marker = 0; |
| 46 | for (int i = 0; i < _totalSlot; i++) |
| 47 | _passFail.push_back(make_pair(0, 0)); |
| 48 | |
| 49 | _avgOverWindow = 0; |
| 50 | _windowPassed = 0; |
| 51 | }; |
| 52 | |
| 53 | ~FailureInfo() {} |
| 54 | // Whenever the window time expires u start filling the count |