fix doxygen and tweak API

This commit is contained in:
Tommaso Pecorella
2023-11-09 10:51:45 +01:00
committed by Tommaso Pecorella
parent 808e3b4ec7
commit e43724f08a
2 changed files with 5 additions and 2 deletions

View File

@@ -190,11 +190,12 @@ Simulator::Stop()
GetImpl()->Stop();
}
void
EventId
Simulator::Stop(const Time& delay)
{
NS_LOG_FUNCTION(delay);
m_stopEvent = GetImpl()->Stop(delay);
return m_stopEvent;
}
EventId

View File

@@ -166,12 +166,14 @@ class Simulator
* or equal to the stop time. The stop time is relative to the
* current simulation time.
* @param [in] delay The stop time, relative to the current time.
* @return The stop EventId.
*/
static void Stop(const Time& delay);
static EventId Stop(const Time& delay);
/**
* Returns the Stop Event, or an invalid event if the simulation
* does not have a scheduled stop time.
* @return The stop EventId.
*/
static EventId GetStopEvent();