A Discrete-Event Network Simulator
API
ns3::anonymous_namespace{time.cc} Namespace Reference

Unnamed namespace. More...

const int8_t UNIT_POWER [Time::LAST] = { 17, 17, 17, 16, 15, 12, 9, 6, 3, 0 }
 Scaling coefficients, exponents, and look up table for unit. More...
 
const int32_t UNIT_COEFF [Time::LAST] = { 315360, 864, 36, 6, 1, 1, 1, 1, 1, 1 }
 Scaling coefficient, relative to smallest unit. More...
 
const long double * UNIT_VALUE = InitUnitValue ()
 Value of each unit, in terms of the smallest defined unit. More...
 
long double Scale (Time::Unit u)
 Scale a unit to the smallest unit. More...
 
long double * InitUnitValue (void)
 Initializer for UNIT_VALUE. More...
 

Detailed Description

Unnamed namespace.

Function Documentation

◆ InitUnitValue()

long double* ns3::anonymous_namespace{time.cc}::InitUnitValue ( void  )

Initializer for UNIT_VALUE.

Definition at line 66 of file time.cc.

References ns3::Time::LAST, Scale(), and ns3::Time::Y.

+ Here is the call graph for this function:

◆ Scale()

long double ns3::anonymous_namespace{time.cc}::Scale ( Time::Unit  u)

Scale a unit to the smallest unit.

Parameters
uThe unit to scale
Returns
The value of u in terms of the smallest defined unit.

Definition at line 59 of file time.cc.

References UNIT_COEFF, and UNIT_POWER.

Referenced by InitUnitValue(), and ns3::operator<<().

+ Here is the caller graph for this function:

Variable Documentation

◆ UNIT_COEFF

const int32_t ns3::anonymous_namespace{time.cc}::UNIT_COEFF[Time::LAST] = { 315360, 864, 36, 6, 1, 1, 1, 1, 1, 1 }

Scaling coefficient, relative to smallest unit.

Definition at line 50 of file time.cc.

Referenced by Scale(), and ns3::Time::SetResolution().

◆ UNIT_POWER

const int8_t ns3::anonymous_namespace{time.cc}::UNIT_POWER[Time::LAST] = { 17, 17, 17, 16, 15, 12, 9, 6, 3, 0 }

Scaling coefficients, exponents, and look up table for unit.

Scaling exponent, relative to smallest unit.

Definition at line 48 of file time.cc.

Referenced by Scale(), and ns3::Time::SetResolution().

◆ UNIT_VALUE

const long double* ns3::anonymous_namespace{time.cc}::UNIT_VALUE = InitUnitValue ()

Value of each unit, in terms of the smallest defined unit.

Definition at line 77 of file time.cc.

Referenced by ns3::operator<<().