5 #ifndef _TEST_STATE_DATA_H_ 6 #define _TEST_STATE_DATA_H_ 9 #include <basicTypes.h> 11 #include "ThroughputConstants.h" 19 double m_avgTime = 0.0;
20 double m_avgBytesPerSec = 0.0;
21 uint32_t m_failCount = 0;
26 char m_buffer[ BUFFER_SIZE ];
28 char* m_curBufPtr =
nullptr;
47 inline void IncrementTestTime(
double incVal ){ m_totalTestTime += incVal; }
51 double m_totalTestTime = 0.0;
52 double m_totalSendTime = 0.0;
53 double m_totalRecTime = 0.0;
59 void InitBuffer(
char* buf,
bool fill );
This is the main object that will keep track of overall test progress and results.
Definition: SerialToEtherThroughput/TestStateData.h:34
bool UpdateCurTestComplete()
Updates the data and averages associated with the overall set of tests that have been run...
Definition: SerialToEtherThroughput/TestStateData.cpp:115
void ResetAvgData()
Reset to the data that tracks the average values of tests.
Definition: SerialToEtherThroughput/TestStateData.cpp:55
void ReportCurTestData()
Prints out data associated with the current test.
Definition: SerialToEtherThroughput/TestStateData.cpp:99
void ResetTestData()
Reset to the start of a new test.
Definition: SerialToEtherThroughput/TestStateData.cpp:27
This holds the cumulative results for a specific set of tests.
Definition: SerialToEtherThroughput/TestStateData.h:16
bool ValidateDataBuffer()
Validates if the data buffer used to receive and send data from matches our base data buffer...
Definition: SerialToEtherThroughput/TestStateData.cpp:78
void UpdateBufPtr(BufferObj &bufferObj)
Updates the current buffer pointer to the location where we are reading/writing the data...
Definition: SerialToEtherThroughput/TestStateData.cpp:68
void ReportTotalTestData()
Prints out the cumulative data for a specific test type.
Definition: SerialToEtherThroughput/TestStateData.cpp:143