LCOV - code coverage report
Current view: top level - source/common/event - real_time_system.h (source / functions) Hit Total Coverage
Test: coverage.dat Lines: 2 2 100.0 %
Date: 2024-01-05 06:35:25 Functions: 2 2 100.0 %

          Line data    Source code
       1             : #pragma once
       2             : 
       3             : #include "envoy/event/timer.h"
       4             : 
       5             : #include "source/common/common/utility.h"
       6             : 
       7             : namespace Envoy {
       8             : namespace Event {
       9             : 
      10             : /**
      11             :  * Real-world time implementation of TimeSystem.
      12             :  */
      13             : class RealTimeSystem : public TimeSystem {
      14             : public:
      15             :   // TimeSystem
      16             :   SchedulerPtr createScheduler(Scheduler&, CallbackScheduler&) override;
      17             : 
      18             :   // TimeSource
      19        5396 :   SystemTime systemTime() override { return time_source_.systemTime(); }
      20       56162 :   MonotonicTime monotonicTime() override { return time_source_.monotonicTime(); }
      21             : 
      22             : private:
      23             :   RealTimeSource time_source_;
      24             : };
      25             : 
      26             : } // namespace Event
      27             : } // namespace Envoy

Generated by: LCOV version 1.15