Jive reference manual
List of all members | Public Member Functions | Static Public Member Functions | Related Functions
jem::Time Class Reference

#include <jem/base/Time.h>

Public Member Functions

 Time ()
 
 Time (lint sec, lint nsec=0)
 
 Time (double sec)
 
 Time (const Time &rhs)
 
void operator+= (const Time &rhs)
 
void operator-= (const Time &rhs)
 
void swap (Time &rhs)
 
lint sec () const
 
lint nsec () const
 
double toDouble () const
 
String toString () const
 
String toString (const String &format) const
 

Static Public Member Functions

static Time zero ()
 
static Time now ()
 
static Time resolution ()
 

Related Functions

(Note that these are not member functions.)

Time operator+ (const Time &lhs, const Time &rhs)
 
Time operator- (const Time &lhs, const Time &rhs)
 
bool operator== (const Time &lhs, const Time &rhs)
 
bool operator!= (const Time &lhs, const Time &rhs)
 
bool operator< (const Time &lhs, const Time &rhs)
 
bool operator<= (const Time &lhs, const Time &rhs)
 
bool operator> (const Time &lhs, const Time &rhs)
 
bool operator>= (const Time &lhs, const Time &rhs)
 
template<class Input >
void decode (Input &in, Time &t)
 
template<class Output >
void encode (Output &out, const Time &t)
 
template<class Output >
void print (Output &out, const Time &t)
 
void swap (Time &lhs, Time &rhs)
 

Detailed Description

Examples:
game-of-life.cpp.

Constructor & Destructor Documentation

jem::Time::Time ( )
jem::Time::Time ( lint  sec,
lint  nsec = 0 
)
explicit
jem::Time::Time ( double  sec)
explicit
jem::Time::Time ( const Time rhs)

Member Function Documentation

void jem::Time::operator+= ( const Time rhs)
void jem::Time::operator-= ( const Time rhs)
void jem::Time::swap ( Time rhs)
lint jem::Time::sec ( ) const
lint jem::Time::nsec ( ) const
double jem::Time::toDouble ( ) const
String jem::Time::toString ( ) const
String jem::Time::toString ( const String format) const
static Time jem::Time::zero ( )
static
static Time jem::Time::now ( )
static
static Time jem::Time::resolution ( )
static

Friends And Related Function Documentation

Time operator+ ( const Time lhs,
const Time rhs 
)
related
Time operator- ( const Time lhs,
const Time rhs 
)
related
bool operator== ( const Time lhs,
const Time rhs 
)
related
bool operator!= ( const Time lhs,
const Time rhs 
)
related
bool operator< ( const Time lhs,
const Time rhs 
)
related
bool operator<= ( const Time lhs,
const Time rhs 
)
related
bool operator> ( const Time lhs,
const Time rhs 
)
related
bool operator>= ( const Time lhs,
const Time rhs 
)
related
template<class Input >
void decode ( Input &  in,
Time t 
)
related
template<class Output >
void encode ( Output &  out,
const Time t 
)
related
template<class Output >
void print ( Output &  out,
const Time t 
)
related
Examples:
alloc.cpp, and Event.cpp.
void swap ( Time lhs,
Time rhs 
)
related