GetSequenceTimestamp (DVR version only)
Top  Previous  Next

Description

Returns the timestamp of the selected frame in the memory sequence, in seconds.


Syntax


[VB]
Value=objActiveGeni.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 ActiveGeni1_FrameLoaded()  
Label1.Caption = ActiveGeni1.GetSequenceTimestamp  
End Sub  
 

Remarks


If the GenTL producer provided with your camera supports the timestamp function, it will mark each frame with a very accurate time value indicating the precise moment at which the frame was acquired by the camera relative to the moment at which the camera was powered up.

If the camera doesn't support timestamps, this method will return the time passed since January 1, 1970.