test/time_measure_test.cc
author hegyi
Sun, 07 Aug 2005 14:17:11 +0000
changeset 1614 350c1d8bb7cc
parent 1359 1581f961cfaa
child 1689 f1795dafe42c
permissions -rw-r--r--
Alpar had the key, focus can be set in the window class. But it is not enough, the focused widget has to be activated, as well! Was a hard task to find out... By the way, two compilation warnings are removed.
     1 /* -*- C++ -*-
     2  * test/time_measure_test.cc - Part of LEMON, a generic C++ optimization library
     3  *
     4  * Copyright (C) 2005 Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport
     5  * (Egervary Research Group on Combinatorial Optimization, EGRES).
     6  *
     7  * Permission to use, modify and distribute this software is granted
     8  * provided that this copyright notice appears in all copies. For
     9  * precise terms see the accompanying LICENSE file.
    10  *
    11  * This software is provided "AS IS" with no warranty of any kind,
    12  * express or implied, and with no claim as to its suitability for any
    13  * purpose.
    14  *
    15  */
    16 
    17 #include <lemon/time_measure.h>
    18 
    19 ///\file \brief Test cases for time_measure.h
    20 ///
    21 ///\todo To be extended
    22 
    23 
    24 using namespace lemon;
    25 
    26 int main()
    27 {
    28   Timer T;
    29   while(T.getRealTime()<1.0) ;
    30   std::cout << T << '\n';
    31   T.reset();
    32   while(T.getRealTime()<2.0) ;
    33   std::cout << T << '\n';
    34   
    35   return 0;
    36 }