Changeset 912 for trunk/MagicSoft/Cosy/base
- Timestamp:
- 08/17/01 15:12:57 (23 years ago)
- Location:
- trunk/MagicSoft/Cosy/base
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Cosy/base/timer.cc
r738 r912 45 45 } 46 46 47 void Timer::SetTimer( struct timeval *tv)47 void Timer::SetTimer(const struct timeval *tv) 48 48 { 49 49 SetTimer(tv->tv_sec, (double)tv->tv_usec/1000000.0); … … 75 75 } 76 76 77 double Timer:: GetTime()77 double Timer::Now() 78 78 { 79 79 struct timeval tv; 80 80 gettimeofday(&tv, NULL); 81 81 82 SetTimer( tv.tv_sec, (double)tv.tv_usec/1000000.0);82 SetTimer(&tv); 83 83 84 84 return fMs+fSecs; 85 85 } 86 86 87 double Timer:: GetMjd()87 double Timer::CalcMjd() 88 88 { 89 89 int status; -
trunk/MagicSoft/Cosy/base/timer.h
r808 r912 27 27 28 28 void SetTimer(int tv_sec, double tv_usec); 29 void SetTimer( struct timeval *tv);29 void SetTimer(const struct timeval *tv); 30 30 31 31 32 32 int GetSecs() { return fSecs; } 33 double GetTime();34 double GetMjd();33 double Now(); 34 double CalcMjd(); 35 35 36 36 int H() const { return fHor; }
Note:
See TracChangeset
for help on using the changeset viewer.