From bb24170e40e943e21fbe6160f67d0a2b29fd3b01 Mon Sep 17 00:00:00 2001 From: Tyler Dauwalder Date: Sat, 24 Aug 2002 05:16:26 +0000 Subject: [PATCH] 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 --- headers/tools/cppunit/TestListener.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/headers/tools/cppunit/TestListener.h b/headers/tools/cppunit/TestListener.h index 7bc38e84de..8128c79324 100644 --- a/headers/tools/cppunit/TestListener.h +++ b/headers/tools/cppunit/TestListener.h @@ -2,6 +2,7 @@ #define _beos_test_listener_h_ #include +#include class CppUnit::Test; class CppUnit::TestFailure; @@ -21,7 +22,9 @@ public: virtual void addFailure( const CppUnit::TestFailure &failure ); virtual void endTest( CppUnit::Test *test ); protected: + void printTime(bigtime_t time); bool fOkay; + bigtime_t startTime; }; #endif // _beos_test_listener_h_