Make 'speedcheck' also available in batch mode simulation.
This commit is contained in:
parent
a77377f6c1
commit
fd8ec3977b
|
|
@ -656,7 +656,13 @@ OUTpData(runDesc *plotPtr, IFvalue *refValue, IFvalue *valuePtr)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (run->data[i].regular) {
|
if (run->data[i].regular) {
|
||||||
if (run->data[i].type == IF_REAL)
|
if (ft_ngdebug && run->data[i].type == IF_REAL && eq(run->data[i].name, "speedcheck")) {
|
||||||
|
/* current time */
|
||||||
|
clock_t cl = clock();
|
||||||
|
double tt = ((double)cl - (double)startclock) / CLOCKS_PER_SEC;
|
||||||
|
fileAddRealValue(run->fp, run->binary, tt);
|
||||||
|
}
|
||||||
|
else if (run->data[i].type == IF_REAL)
|
||||||
fileAddRealValue(run->fp, run->binary,
|
fileAddRealValue(run->fp, run->binary,
|
||||||
valuePtr->v.vec.rVec [run->data[i].outIndex]);
|
valuePtr->v.vec.rVec [run->data[i].outIndex]);
|
||||||
else if (run->data[i].type == IF_COMPLEX)
|
else if (run->data[i].type == IF_COMPLEX)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue