Changeset 1005:63ccf7136641 in lemon0.x for src/lemon/time_measure.h
 Timestamp:
 11/17/04 23:18:30 (16 years ago)
 Branch:
 default
 Phase:
 public
 Convert:
 svn:c9d7d8f590d60310b91f818b3a526b0e/lemon/trunk@1395
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

src/lemon/time_measure.h
r921 r1005 72 72 TimeStamp(void *) { stamp();} 73 73 74 /// 74 ///\e 75 75 TimeStamp &operator+=(const TimeStamp &b) 76 76 { … … 82 82 return *this; 83 83 } 84 /// 84 ///\e 85 85 TimeStamp operator+(const TimeStamp &b) const 86 86 { … … 88 88 return t+=b; 89 89 } 90 /// 90 ///\e 91 91 TimeStamp &operator=(const TimeStamp &b) 92 92 { … … 98 98 return *this; 99 99 } 100 /// 100 ///\e 101 101 TimeStamp operator(const TimeStamp &b) const 102 102 { … … 104 104 return t=b; 105 105 } 106 107 106 ///The time ellapsed since the last call of stamp() 108 107 TimeStamp ellapsed() const … … 181 180 ///since the construction of \c t or since 182 181 ///the last \c t.reset(). 183 operator TimeStamp () 182 operator TimeStamp () const 184 183 { 185 184 TimeStamp t; … … 195 194 return start_timet; 196 195 } 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 197 224 }; 198 225
Note: See TracChangeset
for help on using the changeset viewer.