COIN-OR::LEMON - Graph Library

Changeset 1005:63ccf7136641 in lemon-0.x


Ignore:
Timestamp:
11/17/04 23:18:30 (19 years ago)
Author:
Alpar Juttner
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@1395
Message:
  • Timer class got direct access to the components of the ellapsed time/
  • Better docs.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/lemon/time_measure.h

    r921 r1005  
    7272    TimeStamp(void *) { stamp();}
    7373 
    74     ///
     74    ///\e
    7575    TimeStamp &operator+=(const TimeStamp &b)
    7676    {
     
    8282      return *this;
    8383    }
    84     ///
     84    ///\e
    8585    TimeStamp operator+(const TimeStamp &b) const
    8686    {
     
    8888      return t+=b;
    8989    }
    90     ///
     90    ///\e
    9191    TimeStamp &operator-=(const TimeStamp &b)
    9292    {
     
    9898      return *this;
    9999    }
    100     ///
     100    ///\e
    101101    TimeStamp operator-(const TimeStamp &b) const
    102102    {
     
    104104      return t-=b;
    105105    }
    106 
    107106    ///The time ellapsed since the last call of stamp()
    108107    TimeStamp ellapsed() const
     
    181180    ///since the construction of \c t or since
    182181    ///the last \c t.reset().
    183     operator TimeStamp ()
     182    operator TimeStamp () const
    184183    {
    185184      TimeStamp t;
     
    195194      return start_time-t;
    196195    }
     196
     197
     198    ///Gives back the ellapsed user time of the process
     199    double getUserTime() const
     200    {
     201      return operator TimeStamp().getUserTime();
     202    }
     203    ///Gives back the ellapsed system time of the process
     204    double getSystemTime() const
     205    {
     206      return operator TimeStamp().getSystemTime();
     207    }
     208    ///Gives back the ellapsed user time of the process' children
     209    double getCUserTime() const
     210    {
     211      return operator TimeStamp().getCUserTime();
     212    }
     213    ///Gives back the ellapsed user time of the process' children
     214    double getCSystemTime() const
     215    {
     216      return operator TimeStamp().getCSystemTime();
     217    }
     218    ///Gives back the ellapsed real time of the process
     219    double getRealTime() const
     220    {
     221      return operator TimeStamp().getRealTime();
     222    }
     223
    197224  };
    198225
Note: See TracChangeset for help on using the changeset viewer.