Ignore:
Timestamp:
08/17/01 15:12:57 (23 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Cosy/base
Files:
2 edited

Legend:

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

    r738 r912  
    4545}
    4646
    47 void Timer::SetTimer(struct timeval *tv)
     47void Timer::SetTimer(const struct timeval *tv)
    4848{
    4949    SetTimer(tv->tv_sec, (double)tv->tv_usec/1000000.0);
     
    7575}
    7676
    77 double Timer::GetTime()
     77double Timer::Now()
    7878{
    7979    struct timeval tv;
    8080    gettimeofday(&tv, NULL);
    8181
    82     SetTimer(tv.tv_sec, (double)tv.tv_usec/1000000.0);
     82    SetTimer(&tv);
    8383
    8484    return fMs+fSecs;
    8585}
    8686
    87 double Timer::GetMjd()
     87double Timer::CalcMjd()
    8888{
    8989    int status;
  • trunk/MagicSoft/Cosy/base/timer.h

    r808 r912  
    2727
    2828    void SetTimer(int tv_sec, double tv_usec);
    29     void SetTimer(struct timeval *tv);
     29    void SetTimer(const struct timeval *tv);
    3030
    3131
    3232    int GetSecs() { return fSecs; }
    33     double GetTime();
    34     double GetMjd();
     33    double Now();
     34    double CalcMjd();
    3535
    3636    int H() const { return fHor; }
Note: See TracChangeset for help on using the changeset viewer.