38 gettimeofday(&tim,NULL);
39 return tim.tv_sec+(tim.tv_usec/1000000.0);
43 inline void start(){_c=-clock();_t=-tod();}
44 inline void resume(){_c-=clock();_t-=tod();}
45 inline void stop(){_c+=clock();_t+=tod();}
46 inline const double getTime()
const{
return _t;}
47 inline const double getClockTime()
const{
return (
float)_c/CLOCKS_PER_SEC;}
49 inline void reset(){_c=0; _t=0;}
58 gettimeofday(&t,NULL);
59 double t0(t.tv_sec+(t.tv_usec/1000000.0));
63 gettimeofday(&t,NULL);
64 tc=t.tv_sec+(t.tv_usec/1000000.0);
70 #endif // aslGeneratorS_H const double getTime() const
const double getExpectedTime(double fractTime)
Advanced Simulation Library.
const double getProcessorLoad() const
const double getClockTime() const
const double getLeftTime(double fractTime)