Line data Source code
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 : 17 : OPENDDS_BEGIN_VERSIONED_NAMESPACE_DECL 18 : 19 : namespace OpenDDS { 20 : namespace DCPS { 21 : 22 : class TimeSource { 23 : public: 24 10 : virtual ~TimeSource() {} 25 : 26 5 : virtual MonotonicTimePoint monotonic_time_point_now() const { 27 5 : return MonotonicTimePoint::now(); 28 : } 29 : 30 : }; 31 : 32 : } // namespace DCPS 33 : } // namespace OpenDDS 34 : 35 : OPENDDS_END_VERSIONED_NAMESPACE_DECL 36 : 37 : #endif /* OPENDDS_DCPS_TIME_SOURCE_H */