OpenDDS
Snapshot(2023/04/28-20:55)
dds
DCPS
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
17
OPENDDS_BEGIN_VERSIONED_NAMESPACE_DECL
18
19
namespace
OpenDDS
{
20
namespace
DCPS {
21
22
class
TimeSource
{
23
public
:
24
virtual
~TimeSource
() {}
25
26
virtual
MonotonicTimePoint
monotonic_time_point_now
()
const
{
27
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 */
OpenDDS::DCPS::TimeSource::~TimeSource
virtual ~TimeSource()
Definition:
TimeSource.h:24
OpenDDS::DCPS::TimePoint_T< MonotonicClock >::now
static TimePoint_T< MonotonicClock > now()
Definition:
TimePoint_T.inl:41
OpenDDS::DCPS::TimeSource
Definition:
TimeSource.h:22
OpenDDS::DCPS::TimeSource::monotonic_time_point_now
virtual MonotonicTimePoint monotonic_time_point_now() const
Definition:
TimeSource.h:26
OpenDDS::DCPS::TimePoint_T< MonotonicClock >
OPENDDS_END_VERSIONED_NAMESPACE_DECL
#define OPENDDS_END_VERSIONED_NAMESPACE_DECL
Definition:
Versioned_Namespace.h:48
OPENDDS_BEGIN_VERSIONED_NAMESPACE_DECL
Definition:
Hash.cpp:17
OpenDDS
The Internal API and Implementation of OpenDDS.
Definition:
AddressCache.h:28
TimeTypes.h
Generated by
1.8.13