GCC Code Coverage Report


Directory: ./
File: Posix/DefaultRawTime.cpp
Date: 2026-09-23 22:12:21
Exec Total Coverage
Lines: 3 3 100.0%
Functions: 1 1 100.0%
Branches: 0 0 -%

Line Branch Exec Source
1 // ======================================================================
2 // \title Os/Posix/DefaultRawTime.cpp
3 // \brief sets default Os::RawTime Posix implementation via linker
4 // ======================================================================
5 #include <config/RawTimeSource.hpp>
6 #include "Os/Delegate.hpp"
7 #include "Os/Posix/RawTime.hpp"
8
9 namespace Os {
10
11 //! \brief get a delegate for RawTimeInterface that intercepts calls for Posix
12 //! \param aligned_new_memory: aligned memory to fill
13 //! \param to_copy: pointer to copy-constructor input
14 //! \param source: clock source selection, used when to_copy is nullptr
15 //! \return: pointer to delegate
16 800 RawTimeInterface* RawTimeInterface::getDelegate(RawTimeHandleStorage& aligned_new_memory,
17 const RawTimeInterface* to_copy,
18 RawTimeSource source) {
19 800 return Os::Delegate::makeDelegate<RawTimeInterface, Os::Posix::RawTime::PosixRawTime, RawTimeHandleStorage>(
20 756 aligned_new_memory, to_copy, source);
21 }
22
23 } // namespace Os
24