SetTimerMode
Top  Previous  Next

Description

Sets the operational mode of the virtual camera timer.

[C++]
int
 SetTimerMode(unsigned short timerMode);


Parameters
[C/C++]
 
[in] unsigned short timerMode  
Type of the timer. Can be one of the following values:  
TIMER_UNIX - the internal camera timer counts the time elapsed since 00:00:00 January 1, 1970.  
TIMER_UDP - the internal camera timer counts the time elapsed since the current GigESim-based application has started.  
 
Return Values

S_OK  
Success  
E_FAIL  
Failure  
 

Example

This fragment of code instantiates a camera object and sets the UNIX timer mode:

static CGevCamera* m_pCamera;  
m_pCamera = createCamera();  
 
m_pCamera->SetTimerMode(TIMER_UNIX);  
 

Remarks


The internal GigESim timer is used to integrate timestamps into each frame streamed to the network by the SendImage function. It is also used to handle schedule action commands.

If this function is not called, GigESim will be using the UNIX timer mode.

Note that the camera must be in the disconnected state in order for SetTimerMode to work.