ITimeStamp.h
Go to the documentation of this file.
1 #ifndef istd_ITimeStamp_included
2 #define istd_ITimeStamp_included
3 
4 
5 // Qt includes
6 #include <QtCore/QDateTime>
7 
8 // ACF includes
9 #include <istd/IChangeable.h>
10 
11 
12 namespace istd
13 {
14 
15 
21 class ITimeStamp: virtual public istd::IChangeable
22 {
23 public:
28  {
29  CF_START_SET = 0xa623a
30  };
31 
36  virtual void Start(double elapsedTime = 0) = 0;
37 
41  virtual QDateTime GetStartTime() const = 0;
42 
46  virtual double GetElapsed() const = 0;
47 
51  virtual double GetTimeTo(const ITimeStamp& timer) const = 0;
52 
56  virtual void WaitTo(double time) const = 0;
57 
61  virtual double GetTimerResolution() const = 0;
62 };
63 
64 
65 } // namespace istd
66 
67 
68 #endif // !istd_ITimeStamp_included
69 
virtual void WaitTo(double time) const =0
Wait for specific timer elapsed value is reached.
virtual QDateTime GetStartTime() const =0
Get point in time of latest start.
Common interface for timer implementations.
Definition: ITimeStamp.h:21
virtual double GetTimerResolution() const =0
Return the timer resolution in seconds.
Common interface for data model objects, which can be changed.
Definition: IChangeable.h:24
virtual double GetTimeTo(const ITimeStamp &timer) const =0
Get time difference to second timer.
virtual void Start(double elapsedTime=0)=0
Start the timer.
ChangeFlags
Data model change notification flags.
Definition: IChangeable.h:111
virtual double GetElapsed() const =0
Return the time in seconds from start until this call.

© 2007-2017 Witold Gantzke and Kirill Lepskiy