Home
last modified time | relevance | path

Searched refs:GetSeconds (Results 1 – 25 of 1114) sorted by relevance

12345678910>>...45

/dports/misc/usd/USD-21.11/pxr/base/tf/testenv/
H A Dstopwatch.cpp61 if (watchCopy.GetSeconds() != watch1.GetSeconds()) { in Test_TfStopwatch()
63 << watchCopy.GetSeconds() in Test_TfStopwatch()
79 << watch1.GetSeconds() in Test_TfStopwatch()
94 << watch1.GetSeconds() in Test_TfStopwatch()
104 << watchCopy.GetSeconds() in Test_TfStopwatch()
113 if (!IsClose(watchCopy.GetSeconds(), watch1.GetSeconds())) { in Test_TfStopwatch()
115 << watchCopy.GetSeconds() in Test_TfStopwatch()
117 << watch1.GetSeconds() in Test_TfStopwatch()
126 if (!IsClose(watchCopy.GetSeconds()/watch1.GetSeconds(), 2.0)) { in Test_TfStopwatch()
128 << watchCopy.GetSeconds() in Test_TfStopwatch()
[all …]
H A DscopeDescription.cpp71 while (sw.GetSeconds() < 1.0) { in TestThreads()
101 } while (sw.GetSeconds() < 0.5); in TestOverhead()
104 double baseSecsPerCall = sw.GetSeconds() / double(count); in TestOverhead()
115 } while (sw.GetSeconds() < 0.5); in TestOverhead()
118 double describedSecsPerCall = sw.GetSeconds() / double(count); in TestOverhead()
/dports/net/ns3/ns-allinone-3.35/ns-3.35/src/traffic-control/model/
H A Dpie-queue-disc.cc273 if (m_burstAllowance.GetSeconds () > 0) in DropEarly()
295 if ((m_qDelayOld.GetSeconds () < (0.5 * m_qDelayRef.GetSeconds ())) && (m_dropProb < 0.2)) in DropEarly()
360 if (m_burstAllowance.GetSeconds () > 0) in CalculateP()
366 …p = m_a * (qDelay.GetSeconds () - m_qDelayRef.GetSeconds ()) + m_b * (qDelay.GetSeconds () - m_qDe… in CalculateP()
409 if (qDelay.GetSeconds () == 0 && m_qDelayOld.GetSeconds () == 0) in CalculateP()
438 uint32_t burstResetLimit = static_cast<uint32_t>(BURST_RESET_TIMEOUT / m_tUpdate.GetSeconds ()); in CalculateP()
439 …if ( (qDelay.GetSeconds () < 0.5 * m_qDelayRef.GetSeconds ()) && (m_qDelayOld.GetSeconds () < (0.5… in CalculateP()
444GetSeconds () < 0.5 * m_qDelayRef.GetSeconds ()) && (m_qDelayOld.GetSeconds () < (0.5 * m_qDelayRe… in CalculateP()
502 NS_LOG_LOGIC ("Marking due to CeThreshold " << m_ceThreshold.GetSeconds ()); in DoDequeue()
531 m_avgDqRate = m_dqCount / dqTime.GetSeconds (); in DoDequeue()
[all …]
/dports/net/ns3/ns-allinone-3.35/ns-3.35/src/internet/test/
H A Dtcp-zero-window-test.cc123 if (Simulator::Now ().GetSeconds () <= 6.0) in Tx()
128 else if (Simulator::Now ().GetSeconds () > 6.0 in Tx()
129 && Simulator::Now ().GetSeconds () <= 7.0) in Tx()
142 else if (Simulator::Now ().GetSeconds () > 7.0 in Tx()
143 && Simulator::Now ().GetSeconds () < 10.0) in Tx()
158 if (Simulator::Now ().GetSeconds () > 6.0 in Tx()
159 && Simulator::Now ().GetSeconds () <= 7.0) in Tx()
166 else if (Simulator::Now ().GetSeconds () > 7.0 in Tx()
167 && Simulator::Now ().GetSeconds () < 10.0) in Tx()
171 else if (Simulator::Now ().GetSeconds () >= 10.0) in Tx()
[all …]
H A Dtcp-pacing-test.cc265 … m_expectedInterval = Seconds ((m_segmentSize * m_tracedRtt.GetSeconds ()) / (factor * m_curCwnd)); in UpdateExpectedInterval()
310 …OR_EQ (std::abs ((actualInterval - m_nextPacketInterval).GetSeconds ()), errorMargin.GetSeconds ()… in Tx()
311 NS_LOG_DEBUG ("Pacing Check: interval (s): " << actualInterval.GetSeconds () << in Tx()
312 " expected interval (s): " << m_nextPacketInterval.GetSeconds () << in Tx()
313 … " difference (s): " << std::abs ((actualInterval - m_nextPacketInterval).GetSeconds ()) << in Tx()
314 " errorMargin (s): " << errorMargin.GetSeconds ()); in Tx()
331 NS_LOG_DEBUG ("Next expected interval (s): " << m_nextPacketInterval.GetSeconds ()); in Tx()
/dports/net/ns3/ns-allinone-3.35/ns-3.35/examples/wireless/
H A Dwifi-power-adaptation-interference.cc212 totalTime += GetCalcTxTime (currentRate[dest]).GetSeconds (); in PhyCallback()
233 busyTime += duration.GetSeconds (); in StateCallback()
234 totalBusyTime += duration.GetSeconds (); in StateCallback()
238 idleTime += duration.GetSeconds (); in StateCallback()
239 totalIdleTime += duration.GetSeconds (); in StateCallback()
243 txTime += duration.GetSeconds (); in StateCallback()
244 totalTxTime += duration.GetSeconds (); in StateCallback()
248 rxTime += duration.GetSeconds (); in StateCallback()
249 totalRxTime += duration.GetSeconds (); in StateCallback()
267 m_output_power.Add ((Simulator::Now ()).GetSeconds (), atp); in CheckStatistics()
[all …]
/dports/net/ns3/ns-allinone-3.35/ns-3.35/examples/tcp/
H A Dtcp-validation.cc180 double now = Simulator::Now ().GetSeconds (); in TraceFirstCwnd()
210 *ofStream << Simulator::Now ().GetSeconds () << " " << alpha << std::endl; in TraceFirstDctcp()
215 double now = Simulator::Now ().GetSeconds (); in TraceFirstDctcp()
234 double now = Simulator::Now ().GetSeconds (); in TraceFirstDctcp()
253 … *ofStream << Simulator::Now ().GetSeconds () << " " << newRtt.GetSeconds () * 1000 << std::endl; in TraceFirstRtt()
273 … *ofStream << Simulator::Now ().GetSeconds () << " " << newRtt.GetSeconds () * 1000 << std::endl; in TraceSecondRtt()
282 *ofStream << Simulator::Now ().GetSeconds () << " " << alpha << std::endl; in TraceSecondDctcp()
291 *ofStream << Simulator::Now ().GetSeconds () << " " << rtt.GetSeconds () * 1000 << std::endl; in TracePingRtt()
360 double now = Simulator::Now ().GetSeconds (); in TraceFirstThroughput()
379 double now = Simulator::Now ().GetSeconds (); in TraceFirstThroughput()
[all …]
H A Dtcp-variants-comparison.cc81 *cWndStream->GetStream () << Simulator::Now ().GetSeconds () << " " << newval << std::endl; in CwndTracer()
98 *ssThreshStream->GetStream () << Simulator::Now ().GetSeconds () << " " << newval << std::endl; in SsThreshTracer()
103 *cWndStream->GetStream () << Simulator::Now ().GetSeconds () << " " << cWndValue << std::endl; in SsThreshTracer()
112 *rttStream->GetStream () << "0.0 " << oldval.GetSeconds () << std::endl; in RttTracer()
115 …*rttStream->GetStream () << Simulator::Now ().GetSeconds () << " " << newval.GetSeconds () << std:… in RttTracer()
123 *rtoStream->GetStream () << "0.0 " << oldval.GetSeconds () << std::endl; in RtoTracer()
126 …*rtoStream->GetStream () << Simulator::Now ().GetSeconds () << " " << newval.GetSeconds () << std:… in RtoTracer()
133 *nextTxStream->GetStream () << Simulator::Now ().GetSeconds () << " " << nextTx << std::endl; in NextTxTracer()
140 *inFlightStream->GetStream () << Simulator::Now ().GetSeconds () << " " << inFlight << std::endl; in InFlightTracer()
147 *nextRxStream->GetStream () << Simulator::Now ().GetSeconds () << " " << nextRx << std::endl; in NextRxTracer()
[all …]
H A Ddctcp-example.cc121 …gress to " << std::fixed << std::setprecision (1) << Simulator::Now ().GetSeconds () << " seconds … in PrintProgress()
165 …Throughput << measurementWindow.GetSeconds () << "s " << i << " " << (rxS1R1Bytes[i] * 8) / (measu… in PrintThroughput()
169 …Throughput << Simulator::Now ().GetSeconds () << "s " << i << " " << (rxS2R2Bytes[i] * 8) / (measu… in PrintThroughput()
173 …Throughput << Simulator::Now ().GetSeconds () << "s " << i << " " << (rxS3R1Bytes[i] * 8) / (measu… in PrintThroughput()
190 average = ((sum / 10) * 8 / measurementWindow.GetSeconds ()) / 1e6; in PrintFairness()
204 average = ((sum / 20) * 8 / measurementWindow.GetSeconds ()) / 1e6; in PrintFairness()
218 average = ((sum / 10) * 8 / measurementWindow.GetSeconds ()) / 1e6; in PrintFairness()
252 …t1QueueLength << std::fixed << std::setprecision (2) << Simulator::Now ().GetSeconds () << " " << … in CheckT1QueueSize()
263 …t2QueueLength << std::fixed << std::setprecision (2) << Simulator::Now ().GetSeconds () << " " << … in CheckT2QueueSize()
/dports/net/ns3/ns-allinone-3.35/ns-3.35/src/traffic-control/examples/
H A Dfqcodel-l4s-example.cc308 …*ofStream << Simulator::Now ().GetSeconds () << " " << static_cast<double> (newCwnd) / 1448 << std… in TraceN0Cwnd()
316 …*ofStream << Simulator::Now ().GetSeconds () << " " << static_cast<double> (newCwnd) / 1448 << std… in TraceN1Cwnd()
322 *ofStream << Simulator::Now ().GetSeconds () << " " << newRtt.GetSeconds () * 1000 << std::endl; in TraceN0Rtt()
328 *ofStream << Simulator::Now ().GetSeconds () << " " << newRtt.GetSeconds () * 1000 << std::endl; in TraceN1Rtt()
334 *ofStream << Simulator::Now ().GetSeconds () << " " << rtt.GetSeconds () * 1000 << std::endl; in TracePingRtt()
352 *ofStream << Simulator::Now ().GetSeconds () << " " << std::hex << item->Hash () << std::endl; in TraceDrop()
359 *ofStream << Simulator::Now ().GetSeconds () << " " << std::hex << item->Hash () << std::endl; in TraceMark()
373 *ofStream << Simulator::Now ().GetSeconds () << " " << g_dropsObserved << std::endl; in TraceDropsFrequency()
381 *ofStream << Simulator::Now ().GetSeconds () << " " << g_marksObserved << std::endl; in TraceMarksFrequency()
389 …*ofStream << Simulator::Now ().GetSeconds () << " " << g_n0BytesReceived * 8 / throughputInterval. in TraceN0Throughput()
[all …]
/dports/net/ns3/ns-allinone-3.35/ns-3.35/src/core/test/
H A Dtime-test-suite.cc134 NS_TEST_ASSERT_MSG_EQ ( (t2 - t1).GetSeconds (), 1875, "Time Subtraction"); in DoTimeOperations()
151 NS_TEST_ASSERT_MSG_EQ ( (t2 % t1).GetSeconds (), 81, "Remainder Operation (2000 % 101 = 81)" ); in DoTimeOperations()
153 NS_TEST_ASSERT_MSG_EQ ( Rem (t2,t1).GetSeconds (), 81, "Remainder Operation (2000 % 101 = 81)" ); in DoTimeOperations()
176 NS_TEST_ASSERT_MSG_EQ_TOL (Seconds (1.0).GetSeconds (), 1.0, TimeStep (1).GetSeconds (), in DoRun()
178 NS_TEST_ASSERT_MSG_EQ_TOL (Seconds (10.0).GetSeconds (), 10.0, TimeStep (1).GetSeconds (), in DoRun()
378 NS_TEST_ASSERT_MSG_EQ_TOL (timePositive.GetSeconds (), in DoRun()
383 NS_TEST_ASSERT_MSG_EQ_TOL (timePositiveWithUnits.GetSeconds (), in DoRun()
388 NS_TEST_ASSERT_MSG_EQ_TOL (timeNegative.GetSeconds (), in DoRun()
393 NS_TEST_ASSERT_MSG_EQ_TOL (timeNegativeWithUnits.GetSeconds (), in DoRun()
/dports/net/ns3/ns-allinone-3.35/ns-3.35/src/core/examples/
H A Dsample-simulator.cc60 this, Simulator::Now ().GetSeconds ()); in Start()
66 << Simulator::Now ().GetSeconds () in HandleEvent()
79 << Simulator::Now ().GetSeconds () << "s" << std::endl; in ExampleFunction()
90 << Simulator::Now ().GetSeconds () << "s" << std::endl; in RandomFunction()
H A Dsample-simulator.py37 …e.Simulator.Schedule(ns.core.Seconds(10.0), self.HandleEvent, ns.core.Simulator.Now().GetSeconds())
44 print ("Member method received event at", ns.core.Simulator.Now().GetSeconds(), \
48 print ("ExampleFunction received event at", ns.core.Simulator.Now().GetSeconds(), "s")
52 print ("RandomFunction received event at", ns.core.Simulator.Now().GetSeconds(), "s")
/dports/misc/usd/USD-21.11/pxr/base/trace/testenv/
H A DtestTraceOverhead.cpp43 timer.GetSeconds(), in WriteStats()
128 traceDisableTime = watch.GetSeconds(); in main()
145 traceTime = watch.GetSeconds(); in main()
156 tickTime = watch.GetSeconds(); in main()
166 pushTickTime = watch.GetSeconds(); in main()
176 noTraceTime = watch.GetSeconds(); in main()
/dports/net/ns3/ns-allinone-3.35/ns-3.35/src/buildings/model/
H A Drandom-walk-2d-outdoor-mobility-model.cc132 NS_LOG_FUNCTION (this << delayLeft.GetSeconds ()); in DoWalk()
137 nextPosition.x += speed.x * delayLeft.GetSeconds (); in DoWalk()
138 nextPosition.y += speed.y * delayLeft.GetSeconds (); in DoWalk()
283 NS_LOG_FUNCTION (this << delayLeft.GetSeconds ()); in Rebound()
310 NS_LOG_FUNCTION (this << delayLeft.GetSeconds ()); in AvoidBuilding()
328 nextPosition.x += velocityVector.x * delayLeft.GetSeconds (); in AvoidBuilding()
329 nextPosition.y += velocityVector.y * delayLeft.GetSeconds (); in AvoidBuilding()
363 double speed = distance / delayLeft.GetSeconds (); // compute the speed in AvoidBuilding()
376 nextPosition.x += velocityVector.x * delayLeft.GetSeconds (); in AvoidBuilding()
377 nextPosition.y += velocityVector.y * delayLeft.GetSeconds (); in AvoidBuilding()
/dports/net/ns3/ns-allinone-3.35/ns-3.35/src/internet/model/
H A Dtcp-westwood.cc133 m_currentBW = m_ackedSegments * tcb->m_segmentSize / rtt.GetSeconds (); in EstimateBW()
138 m_currentBW = m_ackedSegments * tcb->m_segmentSize / (currentAck - m_lastAck).GetSeconds (); in EstimateBW()
143 m_currentBW = m_ackedSegments * tcb->m_segmentSize / rtt.GetSeconds (); in EstimateBW()
175 m_currentBW * static_cast<double> (tcb->m_minRtt.GetSeconds ())); in GetSsThresh()
178 uint32_t (m_currentBW * static_cast<double> (tcb->m_minRtt.GetSeconds ()))); in GetSsThresh()
/dports/games/toycars/toycars-0.3.10/toycars/src/
H A DGetSeconds.h34 double GetSeconds() in GetSeconds() function
57 double GetSeconds() in GetSeconds() function
76 double GetSeconds() in GetSeconds() function
/dports/net/ns3/ns-allinone-3.35/ns-3.35/src/lr-wpan/model/
H A Dlr-wpan-csmaca.cc212 …NS_LOG_DEBUG ("Elapsed incoming CAP symbols: " << (elapsedCap.GetSeconds () * symbolRate) << " ("… in GetTimeToNextSlot()
223 elapsedSuperframeSymbols = elapsedSuperframe.GetSeconds () * symbolRate; in GetTimeToNextSlot()
234 …NS_LOG_DEBUG ("Next backoff period boundary in approx. " << nextBoundary.GetSeconds () * symbolRat… in GetTimeToNextSlot()
327 …" periods (" << (randomBackoff.GetSeconds () * symbolRate) << " symbols or " << randomBackoff.As … in RandomBackoffDelay()
332 …NS_LOG_DEBUG ("Backoff periods left in CAP: " << ((timeLeftInCap.GetSeconds () * symbolRate) / m_… in RandomBackoffDelay()
333 … << (timeLeftInCap.GetSeconds () * symbolRate) << " symbols or " in RandomBackoffDelay()
339 …uint64_t usedBackoffs = (double)(timeLeftInCap.GetSeconds () * symbolRate) / m_aUnitBackoffPeriod; in RandomBackoffDelay()
452 NS_LOG_DEBUG ("Symbols left in CAP: " << (timeLeftInCap.GetSeconds () * symbolRate) << in CanProceed()
/dports/net/ns3/ns-allinone-3.35/ns-3.35/src/lr-wpan/examples/
H A Dlr-wpan-mlme.cc52 …NS_LOG_UNCOND (Simulator::Now ().GetSeconds () << " secs | Received BEACON packet of size " << p->… in BeaconIndication()
57 …NS_LOG_UNCOND (Simulator::Now ().GetSeconds () << " secs | Received DATA packet of size " << p->Ge… in DataIndication()
66 NS_LOG_UNCOND (Simulator::Now ().GetSeconds () << " secs | Transmission successfully sent"); in TransEndIndication()
72 …NS_LOG_UNCOND (Simulator::Now ().GetSeconds () << "s Coordinator Received DATA packet (size " << p… in DataIndicationCoordinator()
79 NS_LOG_UNCOND (Simulator::Now ().GetSeconds () << "Beacon status SUCESSFUL"); in StartConfirm()
/dports/net/ns3/ns-allinone-3.35/ns-3.35/src/internet/helper/
H A Dinternet-stack-helper.cc601 *stream->GetStream () << "d " << Simulator::Now ().GetSeconds () << " " << *p << std::endl; in Ipv4L3ProtocolDropSinkWithoutContext()
625 *stream->GetStream () << "t " << Simulator::Now ().GetSeconds () << " " << *packet << std::endl; in Ipv4L3ProtocolTxSinkWithoutContext()
649 *stream->GetStream () << "r " << Simulator::Now ().GetSeconds () << " " << *packet << std::endl; in Ipv4L3ProtocolRxSinkWithoutContext()
688 …*stream->GetStream () << "d " << Simulator::Now ().GetSeconds () << " " << context << "(" << inter… in Ipv4L3ProtocolDropSinkWithContext()
691 …*stream->GetStream () << "d " << Simulator::Now ().GetSeconds () << " " << context << " " << *p <… in Ipv4L3ProtocolDropSinkWithContext()
719 …*stream->GetStream () << "t " << Simulator::Now ().GetSeconds () << " " << context << "(" << inter… in Ipv4L3ProtocolTxSinkWithContext()
750 …*stream->GetStream () << "r " << Simulator::Now ().GetSeconds () << " " << context << "(" << inter… in Ipv4L3ProtocolRxSinkWithContext()
939 *stream->GetStream () << "d " << Simulator::Now ().GetSeconds () << " " << *p << std::endl; in Ipv6L3ProtocolDropSinkWithoutContext()
963 *stream->GetStream () << "t " << Simulator::Now ().GetSeconds () << " " << *packet << std::endl; in Ipv6L3ProtocolTxSinkWithoutContext()
987 *stream->GetStream () << "r " << Simulator::Now ().GetSeconds () << " " << *packet << std::endl; in Ipv6L3ProtocolRxSinkWithoutContext()
[all …]
/dports/devel/jrtplib/JRTPLIB-3.11.2/tests/
H A Dtimetest.cpp17 cout << "Seconds: " << t.GetSeconds() << endl; in main()
29 cout << "Output Seconds: " << t.GetSeconds() << endl; in main()
38 fprintf(stderr, "%10u.%06d\n", (uint32_t)now.GetSeconds(), now.GetMicroSeconds()); in main()
/dports/net/ns3/ns-allinone-3.35/ns-3.35/src/lte/model/
H A Dlte-chunk-processor.cc66 (*m_sumValues) += sinr * duration.GetSeconds (); in EvaluateChunk()
74 if (m_totDuration.GetSeconds () > 0) in End()
79 (*it)((*m_sumValues) / m_totDuration.GetSeconds ()); in End()
/dports/net/ns3/ns-allinone-3.35/ns-3.35/examples/energy/
H A Denergy-model-with-harvesting-example.cc75 << " at time = " << Simulator::Now ().GetSeconds () in PrintReceivedPacket()
129 NS_LOG_UNCOND (Simulator::Now ().GetSeconds () in RemainingEnergy()
137 NS_LOG_UNCOND (Simulator::Now ().GetSeconds () in TotalEnergy()
145 NS_LOG_UNCOND (Simulator::Now ().GetSeconds () in HarvestedPower()
153 NS_LOG_UNCOND (Simulator::Now ().GetSeconds () in TotalEnergyHarvested()
321 NS_LOG_UNCOND ("End of simulation (" << Simulator::Now ().GetSeconds () in main()
/dports/net/ns3/ns-allinone-3.35/ns-3.35/examples/traffic-control/
H A Dtraffic-control.cc178 …ats[1].txBytes * 8.0 / (stats[1].timeLastTxPacket.GetSeconds () - stats[1].timeFirstTxPacket.GetSe… in main()
199 …ats[1].rxBytes * 8.0 / (stats[1].timeLastRxPacket.GetSeconds () - stats[1].timeFirstRxPacket.GetSe… in main()
200 …std::cout << " Mean delay: " << stats[1].delaySum.GetSeconds () / stats[1].rxPackets << std::en… in main()
201 …std::cout << " Mean jitter: " << stats[1].jitterSum.GetSeconds () / (stats[1].rxPackets - 1) <<… in main()
/dports/net/ns3/ns-allinone-3.35/ns-3.35/src/wimax/model/
H A Dsimple-ofdm-wimax-phy.cc671 double symbolsPerSecond = 1 / GetSymbolDuration ().GetSeconds (); in CalculateDataRate()
721 …return Seconds (DoGetNrSymbols (size, modulationType) * GetSymbolDuration ().GetSeconds ()) + Nano… in DoGetTransmissionTime()
729 return (uint64_t) std::ceil (transmissionTime.GetSeconds () / GetSymbolDuration ().GetSeconds ()); in DoGetNrSymbols()
735 Time transmissionTime = Seconds (symbols * GetSymbolDuration ().GetSeconds ()); in DoGetNrBytes()
736 …return (uint64_t) std::floor ((transmissionTime.GetSeconds () * DoGetDataRate (modulationType)) / … in DoGetNrBytes()
836 duration = (uint16_t)(GetFrameDuration ().GetSeconds () * 10000); in DoGetFrameDurationCode()
950 uint16_t psPerFrame = (uint16_t)(GetFrameDuration ().GetSeconds () / psDuration.GetSeconds ()); in DoSetPhyParameters()
957 uint16_t psPerSymbol = lrint (symbolDuration.GetSeconds () / psDuration.GetSeconds ()); in DoSetPhyParameters()
959 …uint32_t symbolsPerFrame = lrint (GetFrameDuration ().GetSeconds () / symbolDuration.GetSeconds ()… in DoSetPhyParameters()

12345678910>>...45