F´ Flight Software - C/C++ Documentation
devel
A framework for building embedded system applications to NASA flight quality standards.
|
#include <Os/IntervalTimer.hpp>
Public Member Functions | |
IntervalTimer () | |
Constructor. More... | |
~IntervalTimer ()=default | |
Destructor. More... | |
void | start () |
Capture the start time of the interval. More... | |
void | stop () |
Capture the stop time of the interval. More... | |
U32 | getDiffUsec () const |
Get the difference between start and stop times in microseconds. More... | |
Os::RawTime::Status | getTimeInterval (Fw::TimeInterval &interval) const |
Get the time interval between the start and stop times. More... | |
Definition at line 27 of file IntervalTimer.hpp.
Os::IntervalTimer::IntervalTimer | ( | ) |
Constructor.
Definition at line 11 of file IntervalTimer.cpp.
|
default |
Destructor.
U32 Os::IntervalTimer::getDiffUsec | ( | ) | const |
Get the difference between start and stop times in microseconds.
This method calculates and returns the time difference between the start and stop times in microseconds. The start() and stop() methods must be called before calling this method.
Definition at line 21 of file IntervalTimer.cpp.
Os::RawTime::Status Os::IntervalTimer::getTimeInterval | ( | Fw::TimeInterval & | interval | ) | const |
Get the time interval between the start and stop times.
This method calculates and returns the time interval between the recorded start and stop times as a Fw::TimeInterval object.
interval | [out] A reference to a Fw::TimeInterval object where the calculated interval will be stored. |
Definition at line 31 of file IntervalTimer.cpp.
void Os::IntervalTimer::start | ( | ) |
Capture the start time of the interval.
This method records the current time as the start time of the interval for this timer instance.
Definition at line 13 of file IntervalTimer.cpp.
void Os::IntervalTimer::stop | ( | ) |
Capture the stop time of the interval.
This method records the current time as the stop time of the interval for this timer instance.
Definition at line 17 of file IntervalTimer.cpp.