diff --git a/ADApp/ADSrc/asynNDArrayDriver.cpp b/ADApp/ADSrc/asynNDArrayDriver.cpp index f5a22dc92..3e6743dd9 100644 --- a/ADApp/ADSrc/asynNDArrayDriver.cpp +++ b/ADApp/ADSrc/asynNDArrayDriver.cpp @@ -820,6 +820,13 @@ asynStatus asynNDArrayDriver::decrementQueuedArrayCount() return asynSuccess; } +void asynNDArrayDriver::updateTimeStamps(NDArray *pArray) +{ + updateTimeStamp(&pArray->epicsTS); + pArray->timeStamp = pArray->epicsTS.secPastEpoch + pArray->epicsTS.nsec/1.e9; +} + + /** This is the constructor for the asynNDArrayDriver class. * portName, maxAddr, interfaceMask, interruptMask, asynFlags, autoConnect, priority and stackSize diff --git a/ADApp/ADSrc/asynNDArrayDriver.h b/ADApp/ADSrc/asynNDArrayDriver.h index c49b3ca11..c47318139 100644 --- a/ADApp/ADSrc/asynNDArrayDriver.h +++ b/ADApp/ADSrc/asynNDArrayDriver.h @@ -156,6 +156,7 @@ class ADCORE_API asynNDArrayDriver : public asynPortDriver { virtual asynStatus createFileName(int maxChars, char *filePath, char *fileName); virtual asynStatus readNDAttributesFile(); virtual asynStatus getAttributes(NDAttributeList *pAttributeList); + virtual void updateTimeStamps(NDArray *pArray); asynStatus incrementQueuedArrayCount(); asynStatus decrementQueuedArrayCount();