Changeset 3637 in Sophya
- Timestamp:
- May 26, 2009, 11:38:36 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaProg/Tests/ttimestamp.cc
r2832 r3637 10 10 #include <typeinfo> 11 11 #include "timing.h" 12 #include "ctimer.h" 12 13 #include "timestamp.h" 13 14 #include "histinit.h" … … 122 123 else 123 124 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 124 145 } 125 146 catch (PThrowable & exc) {
Note:
See TracChangeset
for help on using the changeset viewer.