Added initial timing support. Individual test cases now display run time

information for verbosity >= v2. I'll probably add a command-line
toggle specifically for timing info someday. I also hope to add per-test
and per-suite run time info eventually as well.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@864 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Tyler Dauwalder
2002-08-24 05:16:26 +00:00
parent 537842b6ee
commit bb24170e40
+3
View File
@@ -2,6 +2,7 @@
#define _beos_test_listener_h_ #define _beos_test_listener_h_
#include <cppunit/TestListener.h> #include <cppunit/TestListener.h>
#include <SupportDefs.h>
class CppUnit::Test; class CppUnit::Test;
class CppUnit::TestFailure; class CppUnit::TestFailure;
@@ -21,7 +22,9 @@ public:
virtual void addFailure( const CppUnit::TestFailure &failure ); virtual void addFailure( const CppUnit::TestFailure &failure );
virtual void endTest( CppUnit::Test *test ); virtual void endTest( CppUnit::Test *test );
protected: protected:
void printTime(bigtime_t time);
bool fOkay; bool fOkay;
bigtime_t startTime;
}; };
#endif // _beos_test_listener_h_ #endif // _beos_test_listener_h_