A Discrete-Event Network Simulator
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
nstime.h File Reference
#include "assert.h"
#include "attribute.h"
#include "attribute-helper.h"
#include "int64x64.h"
#include "unused.h"
#include <stdint.h>
#include <limits>
#include <cmath>
#include <ostream>
#include <set>
+ Include dependency graph for nstime.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  ns3::Time::Information
 How to convert between other units and the current unit. More...
 
struct  ns3::Time::Resolution
 Current time unit, and conversion info. More...
 
class  ns3::Time
 Simulation virtual time values and global simulation resolution. More...
 
class  ns3::TimeValue
 Attribute for objects of type ns3::Time. More...
 
class  ns3::TimeWithUnit
 A Time with attached unit, to facilitate output in that unit. More...
 

Namespaces

 ns3
 Every class exported by the ns3 library is enclosed in the ns3 namespace.
 

Functions

Time ns3::Abs (const Time &time)
 
Ptr< const AttributeChecker > ns3::MakeTimeChecker (const Time min, const Time max)
 Helper to make a Time checker with bounded range. More...
 
Ptr< const AttributeChecker > ns3::MakeTimeChecker (void)
 Helper to make an unbounded Time checker. More...
 
Ptr< const AttributeChecker > ns3::MakeTimeChecker (const Time min)
 Helper to make a Time checker with a lower bound. More...
 
Time ns3::Max (const Time &ta, const Time &tb)
 
Time ns3::Min (const Time &ta, const Time &tb)
 
static bool ns3::NS_UNUSED_GLOBAL (g_TimeStaticInit)
 Force static initialization of Time. More...
 
bool ns3::operator!= (const Time &lhs, const Time &rhs)
 
Time ns3::operator* (const Time &lhs, const int64_t &rhs)
 
Time ns3::operator* (const int64_t &lhs, const Time &rhs)
 
Time ns3::operator+ (const Time &lhs, const Time &rhs)
 
Time & ns3::operator+= (Time &lhs, const Time &rhs)
 
Time ns3::operator- (const Time &lhs, const Time &rhs)
 
Time & ns3::operator-= (Time &lhs, const Time &rhs)
 
int64_t ns3::operator/ (const Time &lhs, const Time &rhs)
 
Time ns3::operator/ (const Time &lhs, const int64_t &rhs)
 
bool ns3::operator< (const Time &lhs, const Time &rhs)
 
std::ostream & ns3::operator<< (std::ostream &os, const Time &time)
 Time output streamer. More...
 
bool ns3::operator<= (const Time &lhs, const Time &rhs)
 
bool ns3::operator== (const Time &lhs, const Time &rhs)
 
bool ns3::operator> (const Time &lhs, const Time &rhs)
 
bool ns3::operator>= (const Time &lhs, const Time &rhs)
 
std::istream & ns3::operator>> (std::istream &is, Time &time)
 Time input streamer. More...
 
Time ns3::TimeStep (uint64_t ts)
 
Time ns3::Years (double value)
 Construct a Time in the indicated unit. More...
 
Time ns3::Years (int64x64_t value)
 Construct a Time in the indicated unit. More...
 
Time ns3::Days (double value)
 Construct a Time in the indicated unit. More...
 
Time ns3::Days (int64x64_t value)
 Construct a Time in the indicated unit. More...
 
Time ns3::Hours (double value)
 Construct a Time in the indicated unit. More...
 
Time ns3::Hours (int64x64_t value)
 Construct a Time in the indicated unit. More...
 
Time ns3::Minutes (double value)
 Construct a Time in the indicated unit. More...
 
Time ns3::Minutes (int64x64_t value)
 Construct a Time in the indicated unit. More...
 
Time ns3::Seconds (double value)
 Construct a Time in the indicated unit. More...
 
Time ns3::Seconds (int64x64_t value)
 Construct a Time in the indicated unit. More...
 
Time ns3::MilliSeconds (uint64_t value)
 Construct a Time in the indicated unit. More...
 
Time ns3::MilliSeconds (int64x64_t value)
 Construct a Time in the indicated unit. More...
 
Time ns3::MicroSeconds (uint64_t value)
 Construct a Time in the indicated unit. More...
 
Time ns3::MicroSeconds (int64x64_t value)
 Construct a Time in the indicated unit. More...
 
Time ns3::NanoSeconds (uint64_t value)
 Construct a Time in the indicated unit. More...
 
Time ns3::NanoSeconds (int64x64_t value)
 Construct a Time in the indicated unit. More...
 
Time ns3::PicoSeconds (uint64_t value)
 Construct a Time in the indicated unit. More...
 
Time ns3::PicoSeconds (int64x64_t value)
 Construct a Time in the indicated unit. More...
 
Time ns3::FemtoSeconds (uint64_t value)
 Construct a Time in the indicated unit. More...
 
Time ns3::FemtoSeconds (int64x64_t value)
 Construct a Time in the indicated unit. More...
 
 ns3::ATTRIBUTE_ACCESSOR_DEFINE (Time)
 Attribute accessor function for Time. More...