Changeset 2278 for trunk/MagicSoft/Cosy/base/timer.cc
- Timestamp:
- 07/15/03 15:05:21 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Cosy/base/timer.cc
r1959 r2278 68 68 } 69 69 70 Timer::Timer( Timer &t)70 Timer::Timer(const Timer &t) 71 71 { 72 72 fMs = t.fMs; … … 124 124 } 125 125 126 Timer::operator double() //[s]126 Timer::operator double() const //[s] 127 127 { 128 128 return fMs+fSecs; … … 142 142 } 143 143 144 ostream &operator<<(ostream &out, Timer &t) 145 { 146 char text[256]; 147 148 sprintf(text, "%d/%02d/%02d %d:%02d:%02d.%01li", 149 t.fYea, t.fMon, t.fDay, t.fHor, t.fMin, t.fSec, (long)(10.0*t.fMs)); 150 151 out << text; 152 return out; 153 }
Note:
See TracChangeset
for help on using the changeset viewer.