LCOV - code coverage report
Current view: top level - DCPS - TimeSource.h (source / functions) Hit Total Coverage
Test: coverage.info Lines: 3 3 100.0 %
Date: 2023-04-30 01:32:43 Functions: 2 3 66.7 %

          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 */

Generated by: LCOV version 1.16