This class stores start/stop time of test and supports time and date formatting. More...
#include <TestTime.h>

Public Member Functions | |
| void | StoreStartTime () |
| Retrieve current time and store as start/stop time. | |
| void | StoreStopTime () |
| void | ResetStopTime () |
| Reset the time already stored for stopping (e.g. we are running a loop test and want to get actualized stop times on each cycle). | |
| std::string | GetStartTimeDateStr (void) |
| Get the stored time information. | |
| std::string | GetStopTimeDateStr (void) |
| std::string | GetTestDurationStr (void) |
| Get the test duration in format hh:mm::ss,ms. | |
| long | GetCurTimeMs (void) |
| Get the current test time in milliseconds. | |
| long | GetCurTimeSec (void) |
| Get the current test time in seconds. | |
| std::string | GetCurTimeStr (void) |
| Get the current testtime in format hh:mm::ss,ms. | |
| std::string | GetCurTimeDateStr (void) |
| Get the current date and time in format dd.mm.yyyy hh:mm::ss,ms. | |
Static Public Member Functions | |
| static std::string | FormatTimeAndDate (struct tm *in_pTime) |
| Constructs formatted time and date string. | |
| static std::string | FormatTestDuration (long in_durationMs) |
| Constructs time string of format hh:mm:ss,ms. | |
Private Attributes | |
| long | m_startTimeMs |
| TickCount at start of test. | |
| std::string | m_startTimeDateStr |
| Stored time in string format for start and end of test. | |
| std::string | m_stopTimeDateStr |
| std::string | m_testDurationStr |
This class stores start/stop time of test and supports time and date formatting.
1.6.3