src/lemon/time_measure.h
changeset 997 665ffade9aca
parent 906 17f31d280385
child 1005 63ccf7136641
equal deleted inserted replaced
3:97b554a4f3ac 0:43ce809e713f
     1 /* -*- C++ -*-
     1 /* -*- C++ -*-
     2  * src/hugo/time_measure.h - Part of HUGOlib, a generic C++ optimization library
     2  * src/lemon/time_measure.h - Part of LEMON, a generic C++ optimization library
     3  *
     3  *
     4  * Copyright (C) 2004 Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport
     4  * Copyright (C) 2004 Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport
     5  * (Egervary Combinatorial Optimization Research Group, EGRES).
     5  * (Egervary Combinatorial Optimization Research Group, EGRES).
     6  *
     6  *
     7  * Permission to use, modify and distribute this software is granted
     7  * Permission to use, modify and distribute this software is granted
    12  * express or implied, and with no claim as to its suitability for any
    12  * express or implied, and with no claim as to its suitability for any
    13  * purpose.
    13  * purpose.
    14  *
    14  *
    15  */
    15  */
    16 
    16 
    17 #ifndef HUGO_TIME_MEASURE_H
    17 #ifndef LEMON_TIME_MEASURE_H
    18 #define HUGO_TIME_MEASURE_H
    18 #define LEMON_TIME_MEASURE_H
    19 
    19 
    20 ///\ingroup misc
    20 ///\ingroup misc
    21 ///\file
    21 ///\file
    22 ///\brief Tools for measuring cpu usage
    22 ///\brief Tools for measuring cpu usage
    23 
    23 
    25 #include <sys/times.h>
    25 #include <sys/times.h>
    26 #include <fstream>
    26 #include <fstream>
    27 #include <iostream>
    27 #include <iostream>
    28 #include <unistd.h>
    28 #include <unistd.h>
    29 
    29 
    30 namespace hugo {
    30 namespace lemon {
    31 
    31 
    32   /// \addtogroup misc
    32   /// \addtogroup misc
    33   /// @{
    33   /// @{
    34 
    34 
    35   /// A class to store (cpu)time instances.
    35   /// A class to store (cpu)time instances.
   140   ///Class measuring the cpu time and real time usage of the process
   140   ///Class measuring the cpu time and real time usage of the process
   141 
   141 
   142   ///Class measuring the cpu time and real time usage of the process.
   142   ///Class measuring the cpu time and real time usage of the process.
   143   ///It is quite easy-to-use, here is a short example.
   143   ///It is quite easy-to-use, here is a short example.
   144   ///\code
   144   ///\code
   145   ///#include<hugo/time_measure.h>
   145   ///#include<lemon/time_measure.h>
   146   ///#include<iostream>
   146   ///#include<iostream>
   147   ///
   147   ///
   148   ///int main()
   148   ///int main()
   149   ///{
   149   ///{
   150   ///
   150   ///
   220     return os;
   220     return os;
   221   }
   221   }
   222 
   222 
   223   /// @}  
   223   /// @}  
   224 
   224 
   225 } //namespace hugo
   225 } //namespace lemon
   226 
   226 
   227 #endif //HUGO_TIME_MEASURE_H
   227 #endif //LEMON_TIME_MEASURE_H