fixed delay functionality and removed call to show at exit

This commit is contained in:
Jeff Hill
2004-09-22 18:45:43 +00:00
parent ff419d8922
commit c020be9e04

View File

@@ -19,7 +19,7 @@
//
extern int main (int argc, const char **argv)
{
epicsTime begin (epicsTime::getCurrent());
epicsTime begin (epicsTime::getCurrent());
exServer *pCAS;
unsigned debugLevel = 0u;
double executionTime = 0.0;
@@ -90,16 +90,17 @@ extern int main (int argc, const char **argv)
}
else {
double delay = epicsTime::getCurrent() - begin;
//
// loop here untill the specified execution time
// expires
//
while ( delay < executionTime ) {
fileDescriptorManager.process ( delay );
fileDescriptorManager.process ( executionTime - delay );
delay = epicsTime::getCurrent() - begin;
}
}
pCAS->show(2u);
//pCAS->show(2u);
delete pCAS;
errlogFlush ();
return (0);