![]() |
JSBSim Flight Dynamics Model 1.2.3 (07 Jun 2025)
An Open Source Flight Dynamics and Control Software Library in C++
|
The Timer class measures the elapsed real time and can be paused and resumed.
It inherits from SGPropertyChangeListener to restart the timer whenever a property change is detected.
Definition at line 190 of file JSBSim.cpp.
Inheritance diagram for Timer:
Collaboration diagram for Timer:Public Member Functions | |
| double | getElapsedTime (void) |
| Get the elapsed real time in seconds since the timer was started. | |
| void | pause (bool paused) |
Pause the timer if the paused parameter is true and resume it if the paused parameter is false. | |
| void | start (void) |
| void | valueChanged (SGPropertyNode *prop) override |
| Restart the timer when the listened property is modified. | |
Public Member Functions inherited from SGPropertyChangeListener | |
| virtual void | childAdded (SGPropertyNode *parent, SGPropertyNode *child) |
| Called if child has been added to the given parent. | |
| virtual void | childRemoved (SGPropertyNode *parent, SGPropertyNode *child) |
| Called if child has been removed from its parent. | |
Additional Inherited Members | |
Protected Member Functions inherited from SGPropertyChangeListener | |
| virtual void | register_property (SGPropertyNode *node) |
| virtual void | unregister_property (SGPropertyNode *node) |
|
inline |
Definition at line 192 of file JSBSim.cpp.
|
inline |
Get the elapsed real time in seconds since the timer was started.
Definition at line 201 of file JSBSim.cpp.
|
inline |
Pause the timer if the paused parameter is true and resume it if the paused parameter is false.
Definition at line 205 of file JSBSim.cpp.
|
inline |
Definition at line 193 of file JSBSim.cpp.
|
inlineoverridevirtual |
Restart the timer when the listened property is modified.
Reimplemented from SGPropertyChangeListener.
Definition at line 196 of file JSBSim.cpp.