![]() |
JSBSim Flight Dynamics Model 1.2.2 (22 Mar 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.
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. | |
|
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.
|
inlineoverride |
Restart the timer when the listened property is modified.
Definition at line 196 of file JSBSim.cpp.