Skip to content

Commit

Permalink
Add asynNDArrayDriver::updateTimeStamps(NDArray *pArray) method
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkRivers committed Nov 16, 2023
1 parent 076bd45 commit d1772ed
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ADApp/ADSrc/asynNDArrayDriver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions ADApp/ADSrc/asynNDArrayDriver.h
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit d1772ed

Please sign in to comment.