Skip to content

Commit

Permalink
minor epicsTimerTest
Browse files Browse the repository at this point in the history
  • Loading branch information
mdavidsaver committed Nov 13, 2019
1 parent 01fb554 commit e628d8d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions modules/libcom/test/epicsTimerTest.cpp
Expand Up @@ -112,10 +112,9 @@ double delayVerify::checkError () const
double actualDelay = this->expireStamp - this->beginStamp;
double measuredError = actualDelay - this->expectedDelay;
double percentError = 100.0 * fabs ( measuredError ) / this->expectedDelay;
if ( ! testOk ( percentError < messageThresh, "%f < %f", percentError, messageThresh ) ) {
testDiag ( "delay = %f s, error = %f s (%.1f %%)",
this->expectedDelay, measuredError, percentError );
}
testOk ( percentError < messageThresh, "%f < %f, delay = %f s, error = %f s (%.1f %%)",
percentError, messageThresh,
this->expectedDelay, measuredError, percentError );
return measuredError;
}

Expand Down

0 comments on commit e628d8d

Please sign in to comment.