GCC Code Coverage Report


Directory: ./
File: Os/Stub/DefaultRawTime.cpp
Date: 2026-09-03 22:12:29
Exec Total Coverage
Lines: 0 3 0.0%
Functions: 0 1 0.0%
Branches: 0 0 -%

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