Example time measurement
- Author
- woetzel
#include <Base/Common/W32Compat.hh>
#include <limits.h>
#include <iostream>
#include <cmath>
#include <Base/Debug/TimeMeasure.hh>
using namespace BIAS;
using namespace std;
int main(){
std::cout<<"starting."<<std::endl;
const float loops=1E8;
float sum=0;
for (int x=0; x<loops; x++){
sum+=10.0f*(float)x;
};
biassleep(1);
#ifdef __i386__
#endif
for (int x=0; x<loops; x++){
sum+=3.0f*(float)x;
}
#ifdef __i386__
#endif
return 0;
}