ADTF
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
discrete_clock.h
Go to the documentation of this file.
1
7#pragma once
8#include "base_clock.h"
9
10
11namespace adtf
12{
13
14namespace system
15{
16
17namespace 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);
52 tResult SetTime(tTimeStamp tmNewTime);
53};
54
55}
56
57namespace flash
58{
59
62{
63 private:
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
93 tResult SetTime(tTimeStamp tmNewTime);
94
102
110};
111
112}
113
115
116}
117
118}
cBaseClock(const char *strName)
tResult SetTime(tTimeStamp tmNewTime)
tResult Reset(tTimeStamp tmNewTime)
cDiscreteClock(const char *strName)
Definition discrete_clock.h:62
tResult SetTime(adtf::base::flash::tNanoSeconds tmNewTime)
cDiscreteClock(const char *strName)
tResult Reset(tTimeStamp tmNewTime)
tResult Reset(adtf::base::flash::tNanoSeconds tmNewTime)
tResult SetTime(tTimeStamp tmNewTime)
Namespace for all functionality of the ADTF System SDK provided since v3.0.
Definition adtf_service.h:16
Namespace for all functionality of the ADTF System SDK provided since v3.5.
Definition base_clock.h:66
Namespace for the ADTF System SDK.
Definition adtf_service.h:14
Namespace for all functionality provided by ADTF and its SDKs.
Definition adtf_client_connector.h:14
A timestamp with nanosecond precision.
Definition chrono.h:23