Changeset 3637 in Sophya


Ignore:
Timestamp:
May 26, 2009, 11:38:36 PM (16 years ago)
Author:
ansari
Message:

Check supplementaire ds test TimeStamp - Reza 26/05/2009

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaProg/Tests/ttimestamp.cc

    r2832 r3637  
    1010#include <typeinfo>
    1111#include "timing.h"
     12#include "ctimer.h"
    1213#include "timestamp.h"
    1314#include "histinit.h"
     
    122123    else
    123124      cout << "ttimestamp/Erreur  Diffs vector<TimeStamp>/PPF OK" << endl;
     125
     126    cout << " ---- Mesure de temps ---- " << endl;
     127    Timer tm(false);
     128    for(int i=0;i<100000;i++) {
     129      TimeStamp tsl;
     130    }
     131    cout << "P1- Apres 100000 TimeStamp ts \n" << tm << endl;
     132    for(int i=0;i<100000;i++) {
     133      TimeStamp tsl(2009+i/365,10,i%30, 15,45,0.);
     134    }
     135    cout << "P2- Apres 100000 TimeStamp ts(y,m,d,h,m,s) \n" << tm << endl;
     136
     137    double days;
     138    for(int i=0;i<100000;i++) {
     139      TimeStamp tsl;
     140      TimeStamp tsl2(2009+i/365,10,i%30, 15,45,0.);
     141      days += tsl2.ToDays()-tsl.ToDays();
     142    }
     143    cout << "P3- Apres 100000 TimeStamp t1-ts(y,m,d,h,m,s) \n" << tm << endl;
     144
    124145  }
    125146  catch (PThrowable & exc) {
Note: See TracChangeset for help on using the changeset viewer.