test/time_measure_test.cc
changeset 1027 8b2b9e61d8ce
parent 558 f53d641aa967
child 1083 3e711ee55d31
equal deleted inserted replaced
4:1662e726e767 5:088c11a5f38a
    15  * purpose.
    15  * purpose.
    16  *
    16  *
    17  */
    17  */
    18 
    18 
    19 #include <lemon/time_measure.h>
    19 #include <lemon/time_measure.h>
       
    20 #include <lemon/concept_check.h>
    20 
    21 
    21 using namespace lemon;
    22 using namespace lemon;
    22 
    23 
    23 void f()
    24 void f()
    24 {
    25 {
    30 void g()
    31 void g()
    31 {
    32 {
    32   static Timer T;
    33   static Timer T;
    33 
    34 
    34   for(int i=0;i<1000;i++)
    35   for(int i=0;i<1000;i++)
    35     TimeStamp x(T);
    36     {
       
    37       TimeStamp x(T);
       
    38       ignore_unused_variable_warning(x);
       
    39     }
    36 }
    40 }
    37 
    41 
    38 int main()
    42 int main()
    39 {
    43 {
    40   Timer T;
    44   Timer T;