architecture independent manipulation of NTP stamps

This commit is contained in:
Jeff Hill
2003-10-28 18:56:56 +00:00
parent c69536fc8e
commit c26cd7fdce
2 changed files with 4 additions and 4 deletions

View File

@@ -78,7 +78,7 @@ int epicsTimeTest (void)
epicsTime tsf = ntp;
const double diff = fabs ( tsf - tsi );
// the difference in the precision of the two time formats
static const double precisionNTP = 1.0 / ( 1.0 + UINT_MAX );
static const double precisionNTP = 1.0 / ( 1.0 + 0xffffffff );
static const double precisionEPICS = 1.0 / nSecPerSec;
assert ( diff <= precisionEPICS + precisionNTP );
}