Ignore:
Timestamp:
07/15/03 15:05:21 (21 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Cosy/base/timer.cc

    r1959 r2278  
    6868}
    6969
    70 Timer::Timer(Timer &t)
     70Timer::Timer(const Timer &t)
    7171{
    7272    fMs   = t.fMs;
     
    124124}
    125125
    126 Timer::operator double() //[s]
     126Timer::operator double() const //[s]
    127127{
    128128    return fMs+fSecs;
     
    142142}
    143143
     144ostream &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.