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:1381

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 1340 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 1346 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 1462 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 1456 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 1352 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 1358 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 1421 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 1415 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 1404 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 1398 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 1364 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 1370 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 1438 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 1432 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 1450 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 1444 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 1381 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 1387 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 1328 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 1334 of file nstime.h.

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

Here is the call graph for this function: