F´ Flight Software - C/C++ Documentation
NASA-v1.6.0
A framework for building embedded system applications to NASA flight quality standards.
Loading...
Searching...
No Matches
IntervalTimerCommon.cpp
Go to the documentation of this file.
1
13
#include <
Os/IntervalTimer.hpp
>
14
15
#include <cstring>
16
17
namespace
Os
{
18
19
IntervalTimer::IntervalTimer
() {
20
memset(&this->m_startTime,0,
sizeof
(this->m_startTime));
21
memset(&this->m_stopTime,0,
sizeof
(this->m_stopTime));
22
}
23
24
IntervalTimer::~IntervalTimer
() {}
25
26
void
IntervalTimer::start
() {
27
getRawTime
(this->m_startTime);
28
}
29
30
void
IntervalTimer::stop
() {
31
getRawTime
(this->m_stopTime);
32
}
33
34
U32
IntervalTimer::getDiffUsec
() {
35
return
getDiffUsec
(this->m_stopTime, this->m_startTime);
36
}
37
}
IntervalTimer.hpp
Os::IntervalTimer::getRawTime
static void getRawTime(RawTime &time)
Definition
IntervalTimer.cpp:9
Os::IntervalTimer::~IntervalTimer
virtual ~IntervalTimer()
Destructor.
Definition
IntervalTimer.cpp:7
Os::IntervalTimer::stop
void stop()
Definition
IntervalTimerCommon.cpp:30
Os::IntervalTimer::getDiffUsec
U32 getDiffUsec()
Definition
IntervalTimerCommon.cpp:34
Os::IntervalTimer::start
void start()
Definition
IntervalTimerCommon.cpp:26
Os::IntervalTimer::IntervalTimer
IntervalTimer()
Constructor.
Definition
IntervalTimer.cpp:5
Os
Definition
File.cpp:6
Os
IntervalTimerCommon.cpp
Generated by
1.9.7