F´ Flight Software - C/C++ Documentation
devel
A framework for building embedded system applications to NASA flight quality standards.
Toggle main menu visibility
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
z
Functions
a
b
c
d
g
h
i
m
o
p
r
s
t
v
w
Variables
Typedefs
a
b
c
d
e
f
g
h
l
o
p
r
s
t
u
w
Enumerations
Enumerator
a
b
c
f
h
i
n
o
p
s
v
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
z
~
Functions
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
z
~
Variables
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
w
Typedefs
c
e
s
t
u
w
Enumerations
b
c
d
g
h
m
o
q
s
t
u
w
Enumerator
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
Related Symbols
a
b
c
d
f
g
h
l
p
r
s
t
u
Files
File List
File Members
All
_
a
b
c
d
f
g
h
i
l
m
n
p
r
s
t
u
v
Functions
c
i
m
p
s
u
Variables
_
b
c
f
i
l
p
r
s
Typedefs
b
c
f
i
n
p
s
u
Enumerations
Enumerator
a
b
c
d
f
g
h
p
r
s
t
Macros
_
a
c
d
f
g
h
i
l
m
p
r
s
t
u
v
►
F´ Flight Software - C/C++ Documentation
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
Loading...
Searching...
No Matches
IntervalTimer.hpp
Go to the documentation of this file.
1
7
#ifndef _IntervalTimer_hpp_
8
#define _IntervalTimer_hpp_
9
10
#include <
FpConfig.hpp
>
11
12
namespace
Os
{
13
class
IntervalTimer
{
14
public
:
21
typedef
struct
{
22
U32
upper
;
23
U32
lower
;
24
}
RawTime
;
21
typedef
struct
{
…
};
25
26
IntervalTimer
();
27
virtual
~IntervalTimer
();
28
29
//------------ Common Functions ------------
30
// Common functions, typically do not need to be implemented by an OS support package.
31
// Common implementations in IntervalTimerCommon.cpp.
32
//------------------------------------------
37
void
start
();
42
void
stop
();
48
U32
getDiffUsec
();
49
50
//------------ Platform Functions ------------
51
// Platform functions, typically do need to be implemented by an OS support package, as
52
// they are dependent on the platform definition of "RawTime".
53
//------------------------------------------
54
61
static
U32
getDiffUsec
(
const
RawTime
& t1,
const
RawTime
& t2);
66
static
void
getRawTime
(
RawTime
& time);
67
PRIVATE:
68
69
//------------ Internal Member Variables ------------
70
RawTime
m_startTime;
71
RawTime
m_stopTime;
72
73
//------------ Disabled (private) Copy Constructor ------------
74
IntervalTimer
(
IntervalTimer
&);
75
};
13
class
IntervalTimer
{
…
};
76
}
77
78
#endif
FpConfig.hpp
C++-compatible configuration header for fprime configuration.
Os::IntervalTimer
Definition
IntervalTimer.hpp:13
Os::IntervalTimer::getRawTime
static void getRawTime(RawTime &time)
Definition
IntervalTimer.cpp:5
Os::IntervalTimer::~IntervalTimer
virtual ~IntervalTimer()
Destructor.
Definition
IntervalTimerCommon.cpp:24
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
IntervalTimerCommon.cpp:19
Os
Definition
File.cpp:6
Os::IntervalTimer::RawTime
Definition
IntervalTimer.hpp:21
Os::IntervalTimer::RawTime::lower
U32 lower
Lower 32-bits part of time value. Platform dependent.
Definition
IntervalTimer.hpp:23
Os::IntervalTimer::RawTime::upper
U32 upper
Upper 32-bits part of time value. Platform dependent.
Definition
IntervalTimer.hpp:22
Os
IntervalTimer.hpp
Generated by
1.10.0