# HG changeset patch # User alpar # Date 1083852669 0 # Node ID 367929c61461e3d3b19db77336d268834426894e # Parent 347690b1df4e02f2b927679549575bda8f6f58fe Test cases for time_measure.h diff -r 347690b1df4e -r 367929c61461 src/test/Makefile.am --- a/src/test/Makefile.am Thu May 06 14:00:50 2004 +0000 +++ b/src/test/Makefile.am Thu May 06 14:11:09 2004 +0000 @@ -1,8 +1,9 @@ AM_CPPFLAGS = -I$(top_srcdir)/src -check_PROGRAMS = graph_test +check_PROGRAMS = graph_test time_measure TESTS = $(check_PROGRAMS) XFAIL_TESTS = graph_test_SOURCES = graph_test.cc +time_measure_SOURCES = time_measure.cc \ No newline at end of file diff -r 347690b1df4e -r 367929c61461 src/test/time_measure.cc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/test/time_measure.cc Thu May 06 14:11:09 2004 +0000 @@ -0,0 +1,19 @@ +#include + +///\file \brief Test cases for time_measure.h +/// +///\todo To be extended + + +using namespace hugo; + +int main() +{ + int j=0; + Timer T; + for(int i=0;i++;i<100) j+=2; + std::cout << T << '\n'; + T.reset(); + for(int i=0;i++;i<100) j+=2; + std::cout << T << '\n'; +}