replace most internal getCurrent() -> getMonotonic()

every place where a time delta is computed, and then some.
This commit is contained in:
Michael Davidsaver
2018-12-23 20:48:58 -08:00
parent 8b9ad212c4
commit 4f2228fb1d
21 changed files with 57 additions and 57 deletions

View File

@@ -147,11 +147,11 @@ void Perf :: measure (double srcD, float srcF, int prec)
std::memset(buf, 0, sizeof(buf));
epicsTime beg = epicsTime :: getCurrent ();
epicsTime beg = epicsTime :: getMonotonic ();
for ( unsigned i = 0; i < nIterations; i++ ) {
c->target (srcD, srcF, buf, sizeof(buf) - 1, prec);
}
epicsTime end = epicsTime :: getCurrent ();
epicsTime end = epicsTime :: getMonotonic ();
double elapsed = end - beg;
elapsed /= nIterations * nUnrolled;