Clock.h
Go to the documentation of this file.
1 /*=============================================================================
2  Copyright (C) 2012 Allied Vision Technologies. All Rights Reserved.
3 
4  Redistribution of this file, in original or modified form, without
5  prior written consent of Allied Vision Technologies is prohibited.
6 
7 -------------------------------------------------------------------------------
8 
9  File: Clock.h
10 
11  Description: Definition of a platform independent Sleep.
12  (This include file is for internal use only.)
13 
14 -------------------------------------------------------------------------------
15 
16  THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
17  WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF TITLE,
18  NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19  DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
20  INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21  (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22  LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
23  AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
24  TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
25  OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 
27 =============================================================================*/
28 
29 #ifndef AVT_VMBAPI_CLOCK
30 #define AVT_VMBAPI_CLOCK
31 
32 namespace AVT {
33 namespace VmbAPI {
34 
35 class Clock
36 {
37  public:
38  Clock();
39  virtual ~Clock();
40 
41  virtual void Reset();
42  virtual void SetStartTime();
43  virtual void SetStartTime( double dStartTime );
44  virtual double GetTime() const;
45 
46  static double GetAbsTime();
47 
48  static void Sleep( double dTime );
49  static void SleepMS( unsigned long nTimeMS );
50  static void SleepAbs( double dAbsTime );
51 
52  protected:
53  double m_dStartTime;
54 };
55 
56 }} //namespace AVT::VmbAPI
57 
58 #endif //AVT_VMBAPI_CLOCK
static void SleepMS(unsigned long nTimeMS)
Definition: Clock.cpp:117
double m_dStartTime
Definition: Clock.h:53
static void SleepAbs(double dAbsTime)
Definition: Clock.cpp:126
virtual void Reset()
Definition: Clock.cpp:51
virtual double GetTime() const
Definition: Clock.cpp:66
static double GetAbsTime()
Definition: Clock.cpp:87
virtual ~Clock()
Definition: Clock.cpp:47
static void Sleep(double dTime)
Definition: Clock.cpp:108
virtual void SetStartTime()
Definition: Clock.cpp:56


avt_vimba_camera
Author(s): Miquel Massot , Allied Vision Technologies
autogenerated on Mon Jun 10 2019 12:50:38