OpenDDS  Snapshot(2023/04/28-20:55)
TimeSource.h
Go to the documentation of this file.
1 /*
2  *
3  *
4  * Distributed under the OpenDDS License.
5  * See: http://www.opendds.org/license.html
6  */
7 
8 #ifndef OPENDDS_DCPS_TIME_SOURCE_H
9 #define OPENDDS_DCPS_TIME_SOURCE_H
10 
11 #include "TimeTypes.h"
12 
13 #if !defined (ACE_LACKS_PRAGMA_ONCE)
14 #pragma once
15 #endif /* ACE_LACKS_PRAGMA_ONCE */
16 
18 
19 namespace OpenDDS {
20 namespace DCPS {
21 
22 class TimeSource {
23 public:
24  virtual ~TimeSource() {}
25 
27  return MonotonicTimePoint::now();
28  }
29 
30 };
31 
32 } // namespace DCPS
33 } // namespace OpenDDS
34 
36 
37 #endif /* OPENDDS_DCPS_TIME_SOURCE_H */
static TimePoint_T< MonotonicClock > now()
Definition: TimePoint_T.inl:41
virtual MonotonicTimePoint monotonic_time_point_now() const
Definition: TimeSource.h:26
#define OPENDDS_END_VERSIONED_NAMESPACE_DECL
The Internal API and Implementation of OpenDDS.
Definition: AddressCache.h:28