A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
Standard Time Units.

Convenience constructors in standard units. More...

Collaboration diagram for Standard Time Units.:
Time ns3::Years (double value)
 Construct a Time in the indicated unit.
Time ns3::Years (int64x64_t value)
 Construct a Time in the indicated unit.
Time ns3::Days (double value)
 Construct a Time in the indicated unit.
Time ns3::Days (int64x64_t value)
 Construct a Time in the indicated unit.
Time ns3::Hours (double value)
 Construct a Time in the indicated unit.
Time ns3::Hours (int64x64_t value)
 Construct a Time in the indicated unit.
Time ns3::Minutes (double value)
 Construct a Time in the indicated unit.
Time ns3::Minutes (int64x64_t value)
 Construct a Time in the indicated unit.
Time ns3::Seconds (double value)
 Construct a Time in the indicated unit.
Time ns3::Seconds (int64x64_t value)
 Construct a Time in the indicated unit.
Time ns3::MilliSeconds (uint64_t value)
 Construct a Time in the indicated unit.
Time ns3::MilliSeconds (int64x64_t value)
 Construct a Time in the indicated unit.
Time ns3::MicroSeconds (uint64_t value)
 Construct a Time in the indicated unit.
Time ns3::MicroSeconds (int64x64_t value)
 Construct a Time in the indicated unit.
Time ns3::NanoSeconds (uint64_t value)
 Construct a Time in the indicated unit.
Time ns3::NanoSeconds (int64x64_t value)
 Construct a Time in the indicated unit.
Time ns3::PicoSeconds (uint64_t value)
 Construct a Time in the indicated unit.
Time ns3::PicoSeconds (int64x64_t value)
 Construct a Time in the indicated unit.
Time ns3::FemtoSeconds (uint64_t value)
 Construct a Time in the indicated unit.
Time ns3::FemtoSeconds (int64x64_t value)
 Construct a Time in the indicated unit.

Detailed Description

Convenience constructors in standard units.

For example:

Time t = Seconds (2.0);
static EventId Schedule(const Time &delay, FUNC f, Ts &&... args)
Schedule an event to expire after delay.
Definition simulator.h:580
Time Seconds(double value)
Construct a Time in the indicated unit.
Definition nstime.h:1273

Function Documentation

◆ Days() [1/2]

Time ns3::Days ( double value)
inline

Construct a Time in the indicated unit.

Parameters
[in]valueThe value
Returns
The Time

Definition at line 1232 of file nstime.h.

References ns3::Time::D, and ns3::Time::FromDouble().

Referenced by TimeSimpleTestCase::DoRun().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Days() [2/2]

Time ns3::Days ( int64x64_t value)
inline

Construct a Time in the indicated unit.

Parameters
[in]valueThe value
Returns
The Time

Definition at line 1238 of file nstime.h.

References ns3::Time::D, and ns3::Time::From().

Here is the call graph for this function:

◆ FemtoSeconds() [1/2]

Time ns3::FemtoSeconds ( int64x64_t value)
inline

Construct a Time in the indicated unit.

Parameters
[in]valueThe value
Returns
The Time

Definition at line 1354 of file nstime.h.

References ns3::Time::From(), and ns3::Time::FS.

Here is the call graph for this function:

◆ FemtoSeconds() [2/2]

Time ns3::FemtoSeconds ( uint64_t value)
inline

Construct a Time in the indicated unit.

Parameters
[in]valueThe value
Returns
The Time

Definition at line 1348 of file nstime.h.

References ns3::Time::FromInteger(), and ns3::Time::FS.

Referenced by DataRateTestCase1::DoRun(), TimeSimpleTestCase::DoRun(), ns3::HtPhy::GetPayloadDuration(), ns3::OfdmPhy::GetPayloadDuration(), and ns3::HePhy::GetSigBDuration().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Hours() [1/2]

Time ns3::Hours ( double value)
inline

Construct a Time in the indicated unit.

Parameters
[in]valueThe value
Returns
The Time

Definition at line 1244 of file nstime.h.

References ns3::Time::FromDouble(), and ns3::Time::H.

Referenced by TimeSimpleTestCase::DoRun(), and UanExperiment::SendPackets().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Hours() [2/2]

Time ns3::Hours ( int64x64_t value)
inline

Construct a Time in the indicated unit.

Parameters
[in]valueThe value
Returns
The Time

Definition at line 1250 of file nstime.h.

References ns3::Time::From(), and ns3::Time::H.

Here is the call graph for this function:

◆ MicroSeconds() [1/2]

Time ns3::MicroSeconds ( int64x64_t value)
inline

Construct a Time in the indicated unit.

Parameters
[in]valueThe value
Returns
The Time

Definition at line 1313 of file nstime.h.

References ns3::Time::From(), and ns3::Time::US.

Here is the call graph for this function:

◆ MicroSeconds() [2/2]

Time ns3::MicroSeconds ( uint64_t value)
inline

Construct a Time in the indicated unit.

Parameters
[in]valueThe value
Returns
The Time Caller graph was not generated because of its size.
Referenced by list suppressed because of its size.

Definition at line 1307 of file nstime.h.

References ns3::Time::FromInteger(), and ns3::Time::US.

Here is the call graph for this function:

◆ MilliSeconds() [1/2]

Time ns3::MilliSeconds ( int64x64_t value)
inline

Construct a Time in the indicated unit.

Parameters
[in]valueThe value
Returns
The Time

Definition at line 1296 of file nstime.h.

References ns3::Time::From(), and ns3::Time::MS.

Here is the call graph for this function:

◆ MilliSeconds() [2/2]

Time ns3::MilliSeconds ( uint64_t value)
inline

Construct a Time in the indicated unit.

Parameters
[in]valueThe value
Returns
The Time Caller graph was not generated because of its size.
Referenced by list suppressed because of its size.

Definition at line 1290 of file nstime.h.

References ns3::Time::FromInteger(), and ns3::Time::MS.

Here is the call graph for this function:

◆ Minutes() [1/2]

Time ns3::Minutes ( double value)
inline

Construct a Time in the indicated unit.

Parameters
[in]valueThe value
Returns
The Time

Definition at line 1256 of file nstime.h.

References ns3::Time::FromDouble(), and ns3::Time::MIN.

Referenced by SixlowpanIphcStatefulImplTest::DoRun(), TimeSimpleTestCase::DoRun(), ns3::zigbee::ZigbeeNwk::MlmeAssociateIndication(), ns3::zigbee::ZigbeeNwk::MlmeBeaconNotifyIndication(), and ns3::zigbee::ZigbeeNwk::NlmeDirectJoinRequest().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Minutes() [2/2]

Time ns3::Minutes ( int64x64_t value)
inline

Construct a Time in the indicated unit.

Parameters
[in]valueThe value
Returns
The Time

Definition at line 1262 of file nstime.h.

References ns3::Time::From(), and ns3::Time::MIN.

Here is the call graph for this function:

◆ NanoSeconds() [1/2]

Time ns3::NanoSeconds ( int64x64_t value)
inline

Construct a Time in the indicated unit.

Parameters
[in]valueThe value
Returns
The Time

Definition at line 1330 of file nstime.h.

References ns3::Time::From(), and ns3::Time::NS.

Here is the call graph for this function:

◆ NanoSeconds() [2/2]

Time ns3::NanoSeconds ( uint64_t value)
inline

Construct a Time in the indicated unit.

Parameters
[in]valueThe value
Returns
The Time Caller graph was not generated because of its size.
Referenced by list suppressed because of its size.

Definition at line 1324 of file nstime.h.

References ns3::Time::FromInteger(), and ns3::Time::NS.

Here is the call graph for this function:

◆ PicoSeconds() [1/2]

Time ns3::PicoSeconds ( int64x64_t value)
inline

Construct a Time in the indicated unit.

Parameters
[in]valueThe value
Returns
The Time

Definition at line 1342 of file nstime.h.

References ns3::Time::From(), and ns3::Time::PS.

Here is the call graph for this function:

◆ PicoSeconds() [2/2]

Time ns3::PicoSeconds ( uint64_t value)
inline

Construct a Time in the indicated unit.

Parameters
[in]valueThe value
Returns
The Time

Definition at line 1336 of file nstime.h.

References ns3::Time::FromInteger(), and ns3::Time::PS.

Referenced by DataRateTestCase1::DoRun(), and TimeSimpleTestCase::DoRun().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Seconds() [1/2]

Time ns3::Seconds ( double value)
inline

Construct a Time in the indicated unit.

Parameters
[in]valueThe value
Returns
The Time Caller graph was not generated because of its size.
Referenced by list suppressed because of its size.

Definition at line 1273 of file nstime.h.

References ns3::Time::FromDouble(), and ns3::Time::S.

Here is the call graph for this function:

◆ Seconds() [2/2]

Time ns3::Seconds ( int64x64_t value)
inline

Construct a Time in the indicated unit.

Parameters
[in]valueThe value
Returns
The Time

Definition at line 1279 of file nstime.h.

References ns3::Time::From(), and ns3::Time::S.

Here is the call graph for this function:

◆ Years() [1/2]

Time ns3::Years ( double value)
inline

Construct a Time in the indicated unit.

Parameters
[in]valueThe value
Returns
The Time

Definition at line 1220 of file nstime.h.

References ns3::Time::FromDouble(), and ns3::Time::Y.

Referenced by TimeSimpleTestCase::DoRun().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Years() [2/2]

Time ns3::Years ( int64x64_t value)
inline

Construct a Time in the indicated unit.

Parameters
[in]valueThe value
Returns
The Time

Definition at line 1226 of file nstime.h.

References ns3::Time::From(), and ns3::Time::Y.

Here is the call graph for this function: