MaxSeconds -> Simulator::GetMaximumSimulationTime

This commit is contained in:
Mathieu Lacage
2007-11-29 15:59:31 +01:00
parent 9b5d0a50f7
commit 026f3f2aef
3 changed files with 1 additions and 14 deletions

View File

@@ -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;

View File

@@ -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);

View File

@@ -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