Co-Simulation/Veins/veins/src/veins/modules/mac/ieee80211p/Mac1609_4.cc
/* returns the time until the guard is over */
returns the time until the guard is over
returns the time until the guard is over
simtime_t Mac1609_4::timeLeftTillGuardOver() const
{
    ASSERT(useSCH);
    simtime_t sTime = simTime();
    if (sTime - nextChannelSwitch->getSendingTime() <= GUARD_INTERVAL_11P) {
        return GUARD_INTERVAL_11P - (sTime - nextChannelSwitch->getSendingTime());
    }
    else
        return 0;
}
simtime_t Mac1609_4 :: timeLeftTillGuardOver ( ) const { ASSERT ( useSCH ) ; simtime_t sTime = simTime ( ) ; if ( sTime - nextChannelSwitch -> getSendingTime ( ) <= GUARD_INTERVAL_11P ) { return GUARD_INTERVAL_11P - ( sTime - nextChannelSwitch -> getSendingTime ( ) ) ; } else return 0 ; }
returns the time until the guard is over
returns the time until the guard is over