A Discrete-Event Network Simulator
time.cc File Reference

ns3::Time, ns3::TimeWithUnit and ns3::TimeValue attribute value implementations. More...

#include "nstime.h"
#include "abort.h"
#include "log.h"
#include <cmath>
#include <iomanip>
#include <mutex>
#include <sstream>
+ Include dependency graph for time.cc:

Go to the source code of this file.


namespace  ns3
 Every class exported by the ns3 library is enclosed in the ns3 namespace.
namespace  ns3::anonymous_namespace{time.cc}
 Unnamed namespace.


Ptr< const AttributeChecker > ns3::MakeTimeChecker (const Time min, const Time max)
 Helper to make a Time checker with bounded range. More...
std::ostream & ns3::operator<< (std::ostream &os, const Time &time)
 Time output streamer. More...
std::ostream & ns3::operator<< (std::ostream &os, const TimeWithUnit &timeU)
std::istream & ns3::operator>> (std::istream &is, Time &time)
 Time input streamer. More...


static std::mutex ns3::g_markingMutex
 The static mutex for critical sections around modification of Time::g_markingTimes. More...
long doublens3::anonymous_namespace{time.cc}::InitUnitValue (void)
 Initializer for UNIT_VALUE. More...
long double ns3::anonymous_namespace{time.cc}::Scale (Time::Unit u)
 Scale a unit to the smallest unit. More...
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. More...
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. More...
const long doublens3::anonymous_namespace{time.cc}::UNIT_VALUE = InitUnitValue ()
 Value of each unit, in terms of the smallest defined unit. More...

Detailed Description

ns3::Time, ns3::TimeWithUnit and ns3::TimeValue attribute value implementations.

Definition in file time.cc.