Make Application::Start/Stop times relative, Simulator::StopAt(time) renamed to Simulator::Stop(time) and time also made relative, to improve consistency of the API which uses relative times everywhere else. Closes bug #191.
This commit is contained in:
1 parent
0824fbca51
commit
4e69d6654f
11 files changed
+37
-37
No files matched your search
@@ -108,15 +108,13 @@ void Application::StopApplication()
|
||||
// Private helpers
|
||||
void Application::ScheduleStart (const Time &startTime)
|
||||
{
|
||||
m_startEvent = Simulator::Schedule(startTime -
|
||||
Simulator::Now(),
|
||||
&Application::StartApplication, this);
|
||||
m_startEvent = Simulator::Schedule (startTime,
|
||||
&Application::StartApplication, this);
|
||||
}
|
||||
|
||||
void Application::ScheduleStop (const Time &stopTime)
|
||||
{
|
||||
m_stopEvent = Simulator::Schedule(stopTime -
|
||||
Simulator::Now(),
|
||||
m_stopEvent = Simulator::Schedule (stopTime,
|
||||
&Application::StopApplication, this);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user