MaxSeconds -> Simulator::GetMaximumSimulationTime
This commit is contained in:
@@ -372,7 +372,7 @@ DcfManager::DoRestartAccessTimeoutIfNeeded (void)
|
||||
* if there is one, how many slots for AIFS+backoff does it require ?
|
||||
*/
|
||||
bool accessTimeoutNeeded = false;
|
||||
Time expectedBackoffEnd = MaxSeconds ();
|
||||
Time expectedBackoffEnd = Simulator::GetMaximumSimulationTime ();
|
||||
for (States::const_iterator i = m_states.begin (); i != m_states.end (); i++)
|
||||
{
|
||||
DcfState *state = *i;
|
||||
|
||||
@@ -577,12 +577,6 @@ Time PicoSeconds (uint64_t ps);
|
||||
*/
|
||||
Time FemtoSeconds (uint64_t fs);
|
||||
|
||||
/**
|
||||
* \brief create a ns3::Time instance which represents
|
||||
* the maximum value representable in a simulation.
|
||||
*/
|
||||
Time MaxSeconds (void);
|
||||
|
||||
// internal function not publicly documented
|
||||
Time TimeStep (uint64_t ts);
|
||||
|
||||
|
||||
@@ -268,13 +268,6 @@ Time FemtoSeconds (uint64_t fs)
|
||||
uint64_t ts = TimeUnit<1>::UnitsToTimestep(fs, TimeStepPrecision::FS_FACTOR);
|
||||
return TimeStep(ts);
|
||||
}
|
||||
Time MaxSeconds (void)
|
||||
{
|
||||
// XXX: I am fairly certain other compilers use other non-standard
|
||||
// post-fixes to indicate 64 bit constants.
|
||||
return TimeStep (0x7fffffffffffffffLL);
|
||||
}
|
||||
|
||||
/*
|
||||
* The timestep value passed to this function must be of the precision
|
||||
* of TimeStepPrecision::Get
|
||||
|
||||
Reference in New Issue
Block a user