1.1 --- a/src/test/Makefile.am Thu May 06 14:00:50 2004 +0000
1.2 +++ b/src/test/Makefile.am Thu May 06 14:11:09 2004 +0000
1.3 @@ -1,8 +1,9 @@
1.4 AM_CPPFLAGS = -I$(top_srcdir)/src
1.5
1.6 -check_PROGRAMS = graph_test
1.7 +check_PROGRAMS = graph_test time_measure
1.8
1.9 TESTS = $(check_PROGRAMS)
1.10 XFAIL_TESTS =
1.11
1.12 graph_test_SOURCES = graph_test.cc
1.13 +time_measure_SOURCES = time_measure.cc
1.14 \ No newline at end of file
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2.2 +++ b/src/test/time_measure.cc Thu May 06 14:11:09 2004 +0000
2.3 @@ -0,0 +1,19 @@
2.4 +#include <hugo/time_measure.h>
2.5 +
2.6 +///\file \brief Test cases for time_measure.h
2.7 +///
2.8 +///\todo To be extended
2.9 +
2.10 +
2.11 +using namespace hugo;
2.12 +
2.13 +int main()
2.14 +{
2.15 + int j=0;
2.16 + Timer T;
2.17 + for(int i=0;i++;i<100) j+=2;
2.18 + std::cout << T << '\n';
2.19 + T.reset();
2.20 + for(int i=0;i++;i<100) j+=2;
2.21 + std::cout << T << '\n';
2.22 +}