ADTF  3.18.2
discrete_clock.h
Go to the documentation of this file.
1 
7 #pragma once
8 #include "base_clock.h"
9 
10 
11 namespace adtf
12 {
13 
14 namespace system
15 {
16 
17 namespace ant
18 {
19 
26 {
27  private:
28  std::atomic_int_least64_t m_nCurrentTime;
29 
30  public:
33  cDiscreteClock(const char* strName);
34 
35  public:
36  tTimeStamp GetTime() const override;
37 
38  public:
45  tResult Reset(tTimeStamp tmNewTime);
53 };
54 
55 }
56 
57 namespace flash
58 {
59 
62 {
63  private:
64  adtf::base::flash::tNanoSeconds m_nCurrentTime;
65 
66  public:
70 
73  cDiscreteClock(const char* strName);
74 
75  public:
76  adtf::base::flash::tNanoSeconds GetTimeNs() const override;
77 
78  public:
85  tResult Reset(tTimeStamp tmNewTime);
86 
94 
102 
110 };
111 
112 }
113 
115 
116 }
117 
118 }
Copyright © Audi Electronics Venture GmbH.
Basic Clock implementation for adtf::services::ant::IReferenceClock::IClock.
Definition: base_clock.h:25
Discrete Clock implementation.
tResult Reset(tTimeStamp tmNewTime)
Resets the time to the new value and send the reste time events.
tResult SetTime(tTimeStamp tmNewTime)
Sets the time to the new value and resets if value is less than time is set.
cDiscreteClock(const char *strName)
CTOR.
Discrete Clock implementation.
tResult Reset(tTimeStamp tmNewTime)
Resets the time to the new value and send the reset time events.
tResult Reset(adtf::base::flash::tNanoSeconds tmNewTime)
Resets the time to the new value and send the reste time events.
tResult SetTime(adtf::base::flash::tNanoSeconds tmNewTime)
Sets the time to the new value and resets if value is less than time is set.
cDiscreteClock()
CTOR make sure you call SetName()
tResult SetTime(tTimeStamp tmNewTime)
Sets the time to the new value and resets if value is less than time is set.
cDiscreteClock(const char *strName)
CTOR.
Namespace for entire ADTF SDK.