LCOV - code coverage report
Current view: top level - source/extensions/tracers/datadog - time_util.cc (source / functions) Hit Total Coverage
Test: coverage.dat Lines: 0 11 0.0 %
Date: 2024-01-05 06:35:25 Functions: 0 2 0.0 %

          Line data    Source code
       1             : #include "source/extensions/tracers/datadog/time_util.h"
       2             : 
       3             : #include <chrono>
       4             : 
       5             : namespace Envoy {
       6             : namespace Extensions {
       7             : namespace Tracers {
       8             : namespace Datadog {
       9             : 
      10           0 : datadog::tracing::TimePoint estimateTime(SystemTime wall) {
      11           0 :   return estimateTime(wall, datadog::tracing::default_clock);
      12           0 : }
      13             : 
      14           0 : datadog::tracing::TimePoint estimateTime(SystemTime wall, const datadog::tracing::Clock& clock) {
      15           0 :   datadog::tracing::TimePoint point = clock();
      16           0 :   if (point.wall > wall) {
      17           0 :     point.tick -= point.wall - wall;
      18           0 :   }
      19           0 :   point.wall = wall;
      20           0 :   return point;
      21           0 : }
      22             : 
      23             : } // namespace Datadog
      24             : } // namespace Tracers
      25             : } // namespace Extensions
      26             : } // namespace Envoy

Generated by: LCOV version 1.15