Changeset 738 for trunk/MagicSoft/Cosy/base
- Timestamp:
- 04/10/01 10:49:10 (24 years ago)
- Location:
- trunk/MagicSoft/Cosy/base
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Cosy/base/timer.cc
r732 r738 1 1 #include "timer.h" 2 2 3 #include <stdio.h> 3 4 #include <iostream.h> 4 5 … … 106 107 } 107 108 109 const char *Timer::GetTimeStr() 110 { 111 sprintf(fDateStr, "%d/%02d/%02d %d:%02d:%02d.%06li", 112 fYea, fMon, fDay, fHor, fMin, fSec, (long)(1000000.0*fMs)); 113 114 return fDateStr; 115 } 116 108 117 const int Timer::fDays[12] = {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31}; -
trunk/MagicSoft/Cosy/base/timer.h
r732 r738 18 18 int fYea; 19 19 20 char fDateStr[27]; 21 20 22 public: 21 23 Timer() : fMs(0), fSec(0), fSecs(0), fMin(0), fHor(0), fDay(0), fMon(0), fYea(0) {} … … 32 34 double GetMjd(); 33 35 36 const char *GetTimeStr(); 37 34 38 void Print(); 35 39
Note:
See TracChangeset
for help on using the changeset viewer.