27 #ifndef __ETL__CLOCK_H
28 #define __ETL__CLOCK_H
35 inline void sleep(
int i) { Sleep(i*1000); }
46 inline void yield() { sleep(0); }
66 using DESC::get_current_time;
68 using DESC::one_second;
77 {
return this->timestamp_to_seconds(get_current_time()-
base_time); }
87 return this->timestamp_to_seconds(
base_time-old_time);
100 for(val=timer();one_second()<length-val;val=timer())
101 ::
sleep((
int)((length-val)/2.0+0.4));
102 while(timer()<length)