replace most internal getCurrent() -> getMonotonic()
every place where a time delta is computed, and then some.
This commit is contained in:
@@ -72,7 +72,7 @@ void timerQueueActive :: _printLastChanceExceptionMessage (
|
||||
{
|
||||
char date[64];
|
||||
try {
|
||||
epicsTime cur = epicsTime :: getCurrent ();
|
||||
epicsTime cur = epicsTime :: getMonotonic ();
|
||||
cur.strftime ( date, sizeof ( date ), "%a %b %d %Y %H:%M:%S.%f");
|
||||
}
|
||||
catch ( ... ) {
|
||||
@@ -90,7 +90,7 @@ void timerQueueActive :: run ()
|
||||
this->exitFlag = false;
|
||||
while ( ! this->terminateFlag ) {
|
||||
try {
|
||||
double delay = this->queue.process ( epicsTime::getCurrent() );
|
||||
double delay = this->queue.process ( epicsTime::getMonotonic() );
|
||||
debugPrintf ( ( "timer thread sleeping for %g sec (max)\n", delay ) );
|
||||
this->rescheduleEvent.wait ( delay );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user