6#ifndef TIMESIGNAL_HPP_INCLUDE
7#define TIMESIGNAL_HPP_INCLUDE
22 std::shared_ptr<double> time_batch);
27 double sample(
void)
override;
28 double read(
void)
const override;
30 std::shared_ptr<geopm_time_s> m_time_zero;
31 std::shared_ptr<double> m_time_batch;
32 bool m_is_batch_ready;
Definition TimeSignal.hpp:19
double read(void) const override
Read directly the value of the signal without affecting any pushed batch signals.
Definition TimeSignal.cpp:39
double sample(void) override
Apply any conversions necessary to interpret the latest stored value as a double.
Definition TimeSignal.cpp:30
void setup_batch(void) override
Prepare the signal for being updated through side effects by the owner's read_batch step....
Definition TimeSignal.cpp:23
TimeSignal & operator=(const TimeSignal &other)=delete
TimeSignal(const TimeSignal &other)=delete
virtual ~TimeSignal()=default
struct geopm_time_s time_zero(void)
Definition TimeZero.cpp:56