Commit 91463522 authored by fmg005's avatar fmg005

Bug fix

parent 5c25f4bf
......@@ -19,8 +19,11 @@ void Realtime::AdvanceModelTime(double time) {
/* start time for the next execution */
m_real_time = m_start + (m_next_start * time);
/* check if simuation takes longer than expected */
if ((m_end - m_start) > m_real_time)
/* check if simuation takes longer than expected
i.e., time = 1.0s
clocks (1s real-time equivalent) = CLOCKS_PER_SEC * time
*/
if ((m_end - m_start) > (CLOCKS_PER_SEC * time))
m_logger->error("Simulation too slow");
/* wait until start time of next execution is reached i.e., 1s of real-time */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment