[Lemon-commits] [lemon_svn] alpar: r717 - hugo/trunk/src/test
Lemon SVN
svn at lemon.cs.elte.hu
Mon Nov 6 20:41:07 CET 2006
Author: alpar
Date: Thu May 6 16:11:09 2004
New Revision: 717
Added:
hugo/trunk/src/test/time_measure.cc
Modified:
hugo/trunk/src/test/Makefile.am
Log:
Test cases for time_measure.h
Modified: hugo/trunk/src/test/Makefile.am
==============================================================================
--- hugo/trunk/src/test/Makefile.am (original)
+++ hugo/trunk/src/test/Makefile.am Thu May 6 16:11:09 2004
@@ -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
Added: hugo/trunk/src/test/time_measure.cc
==============================================================================
--- (empty file)
+++ hugo/trunk/src/test/time_measure.cc Thu May 6 16:11:09 2004
@@ -0,0 +1,19 @@
+#include <hugo/time_measure.h>
+
+///\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';
+}
More information about the Lemon-commits
mailing list