A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
time.cc File Reference

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

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

Go to the source code of this file.

Namespaces

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

Functions

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

Variables

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

Detailed Description

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

Definition in file time.cc.