]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Timer check extended and accelerated
authorguido <guido@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 16 Feb 2000 17:50:47 +0000 (17:50 +0000)
committerguido <guido@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 16 Feb 2000 17:50:47 +0000 (17:50 +0000)
git-svn-id: https://svn.dealii.org/trunk@2425 0785d39b-7218-0410-832d-ea1e28bc413d

tests/base/timer.cc
tests/base/timer.checked

index 3d0e092ad259e2b32d504e35d45a03fcaf0f6ed7..81072350dd69f17e7e2b073f6886de1f6df70a07 100644 (file)
@@ -44,19 +44,23 @@ int main ()
   deallog.depth_console(0);
 
   Timer t1,t2;
-  burn (100);
+  burn (20);
   double s01 = t1.stop();
   double s02 = t2();
-  burn (100);
+  burn (20);
   double s11 = t1.stop();
   double s12 = t2();
   t1.start();
-  burn (100);
-  double s21 = t1.stop();
+  burn (20);
+  double s21 = t1();
   double s22 = t2();
+  burn (20);
+  double s31 = t1();
+  double s32 = t2();
 
   compare (s01,s02,1.);
   compare (s11,s12,2.);
   compare (s21,s22,3./2.);
+  compare (s31,s32,4./3.);
 }
 
index fb71de2867cdd56077fa628bd1498d2d19382019..5f42bb230f11ca6753755403100d254e31356269 100644 (file)
@@ -2,3 +2,4 @@
 DEAL::OK
 DEAL::OK
 DEAL::OK
+DEAL::OK

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.