GetSequenceTimestamp (DVR version only)
Top  Previous  Next

Description

Returns the timestamp of the selected frame in the memory sequence, in seconds since January 1, 1970.


Syntax


[VB]
Value=objActiveDcam.GetSequenceTimestamp (Frame)


[C/C++]
HRESULT GetSequenceTimestamp(long iFrame, double* pValue);


Data Types
[VB]

Frame: Long
Return value
: Double


Parameters
[C/C++]

iFrame [in]  
The zero-based index of the frame in the memory sequence  
pValue [out,retval]  
Pointer to the timestamp value  


Return Values


S_OK  
Success  
E_FAIL  
Failure  
E_INVALIDARG  
Invalid frame index  

Example


This VB example displays the timestamp value of each frame of the sequence in a text box.

Private Sub ActiveDcam1_FrameLoaded()  
Label1.Caption = ActiveDcam1.GetSequenceTimestamp  
End Sub  
 

Remarks


The timestamp of a frame is measured upon the arrival of the frame into the system memory. The precision of timestamps depends on the settings of your sysem clock. It is recommended to use a time synchronization software to synchronize your system clock with public time servers.