LCOV - code coverage report
Current view: top level - generated/include/ad/rss/map - TimePointOstream.hpp (source / functions) Hit Total Coverage
Test: ad_rss_map_integration Lines: 8 8 100.0 %
Date: 2025-07-22 06:56:19 Functions: 1 1 100.0 %
Branches: 6 12 50.0 %

           Branch data     Line data    Source code
       1                 :            : /*
       2                 :            :  * ----------------- BEGIN LICENSE BLOCK ---------------------------------
       3                 :            :  *
       4                 :            :  * Copyright (C) 2018-2020 Intel Corporation
       5                 :            :  *
       6                 :            :  * SPDX-License-Identifier: LGPL-2.1-only
       7                 :            :  *
       8                 :            :  * ----------------- END LICENSE BLOCK -----------------------------------
       9                 :            :  */
      10                 :            : 
      11                 :            : /**
      12                 :            :  * Generated file
      13                 :            :  * @file
      14                 :            :  *
      15                 :            :  * Generator Version : 11.0.0-1988
      16                 :            :  */
      17                 :            : 
      18                 :            : #pragma once
      19                 :            : 
      20                 :            : #include <chrono>
      21                 :            : #include <iomanip>
      22                 :            : #include <iostream>
      23                 :            : 
      24                 :            : #if __cplusplus <= 201703L
      25                 :            : 
      26                 :            : namespace std {
      27                 :            : namespace chrono {
      28                 :            : 
      29                 :         81 : inline std::ostream &operator<<(std::ostream &os, system_clock::time_point const &value)
      30                 :            : {
      31                 :         81 :   std::ios::fmtflags os_flags(os.flags());
      32                 :         81 :   std::time_t t = std::chrono::system_clock::to_time_t(value);
      33         [ +  - ]:         81 :   os << std::put_time(std::localtime(&t), "%d.%m.%Y-%H:%M:%S");
      34   [ +  -  +  -  :         81 :   os << "." << std::setfill('0') << std::setw(3)
                   +  - ]
      35   [ +  -  +  - ]:         81 :      << (std::chrono::duration_cast<std::chrono::milliseconds>(value.time_since_epoch()).count() % 1000);
      36                 :         81 :   os.flags(os_flags);
      37                 :         81 :   return os;
      38                 :            : }
      39                 :            : 
      40                 :            : } // namespace chrono
      41                 :            : } // namespace std
      42                 :            : 
      43                 :            : #endif

Generated by: LCOV version 1.14