/[resiprocate]/main/rutil/test/testFifo.cxx
ViewVC logotype

Diff of /main/rutil/test/testFifo.cxx

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 5363 by jason, Fri Sep 2 22:27:00 2005 UTC revision 5677 by derek, Thu Nov 17 05:00:36 2005 UTC
# Line 158  Line 158 
158  {  {
159     Log::initialize(Log::Cout, Log::Debug, Data::Empty);     Log::initialize(Log::Cout, Log::Debug, Data::Empty);
160    
161       {
162          cerr << "!! test getNext(ms) empty fifo timing" << endl;
163          Fifo<Foo> fifo;
164          UInt64 begin(Timer::getTimeMs());
165          fifo.getNext(2000);
166          UInt64 end(Timer::getTimeMs());
167          cerr << begin << " " << end << " " << end-begin << endl;      
168          
169          int offMark = 2000 - (end - begin);
170          
171          assert(abs(offMark) < 200);
172       }
173    
174     Fifo<Foo> f;     Fifo<Foo> f;
175     FiniteFifo<Foo> ff(5);     FiniteFifo<Foo> ff(5);
176    

Legend:
Removed from v.5363  
changed lines
  Added in v.5677

webmaster AT resiprocate DOT org
ViewVC Help
Powered by ViewVC 1.1.27