Changeset 738 for trunk/MagicSoft


Ignore:
Timestamp:
04/10/01 10:49:10 (23 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Cosy
Files:
23 added
2 edited

Legend:

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

    r732 r738  
    11#include "timer.h"
    22
     3#include <stdio.h>
    34#include <iostream.h>
    45
     
    106107}
    107108
     109const 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
    108117const int Timer::fDays[12] = {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
  • trunk/MagicSoft/Cosy/base/timer.h

    r732 r738  
    1818    int fYea;
    1919
     20    char fDateStr[27];
     21
    2022public:
    2123    Timer() : fMs(0), fSec(0), fSecs(0), fMin(0), fHor(0), fDay(0), fMon(0), fYea(0) {}
     
    3234    double GetMjd();
    3335
     36    const char *GetTimeStr();
     37
    3438    void Print();
    3539
Note: See TracChangeset for help on using the changeset viewer.