F´ Flight Software - C/C++ Documentation
devel
A framework for building embedded system applications to NASA flight quality standards.
IntervalTimer.hpp
Go to the documentation of this file.
1
// ======================================================================
2
// \title Os/IntervalTimer.hpp
3
// \brief Definition for Os::IntervalTimer
4
// ======================================================================
5
#ifndef _IntervalTimer_hpp_
6
#define _IntervalTimer_hpp_
7
8
#include <
FpConfig.hpp
>
9
#include <
Os/RawTime.hpp
>
10
11
namespace
Os
{
27
class
IntervalTimer
{
28
public
:
30
IntervalTimer
();
31
33
~IntervalTimer
() =
default
;
34
38
void
start
();
39
43
void
stop
();
44
55
U32
getDiffUsec
()
const
;
56
64
Os::RawTime::Status
getTimeInterval
(
Fw::TimeInterval
& interval)
const
;
65
66
PRIVATE:
67
RawTime
m_startTime;
68
RawTime
m_stopTime;
69
71
IntervalTimer
(
IntervalTimer
&);
72
73
};
// class IntervalTimer
74
75
}
// namespace Os
76
77
#endif
FpConfig.hpp
C++-compatible configuration header for fprime configuration.
RawTime.hpp
Fw::TimeInterval
Definition:
TimeInterval.hpp:18
Os::IntervalTimer
Definition:
IntervalTimer.hpp:27
Os::IntervalTimer::~IntervalTimer
~IntervalTimer()=default
Destructor.
Os::IntervalTimer::getDiffUsec
U32 getDiffUsec() const
Get the difference between start and stop times in microseconds.
Definition:
IntervalTimer.cpp:21
Os::IntervalTimer::stop
void stop()
Capture the stop time of the interval.
Definition:
IntervalTimer.cpp:17
Os::IntervalTimer::start
void start()
Capture the start time of the interval.
Definition:
IntervalTimer.cpp:13
Os::IntervalTimer::IntervalTimer
IntervalTimer()
Constructor.
Definition:
IntervalTimer.cpp:11
Os::IntervalTimer::getTimeInterval
Os::RawTime::Status getTimeInterval(Fw::TimeInterval &interval) const
Get the time interval between the start and stop times.
Definition:
IntervalTimer.cpp:31
Os::RawTime
Definition:
RawTime.hpp:99
Os::RawTimeInterface::Status
Status
Definition:
RawTime.hpp:27
Os
Definition:
DirectoryOpenModeEnumAc.cpp:13
Os
IntervalTimer.hpp
Generated by
1.9.1