Savarese Software Research Corporation
TimeValue Class Reference

#include <TimeValue.h>

Public Types

typedef std::int64_t  ms_type
 
typedef time_t  sec_type
 
typedef long  nsec_type
 
typedef std::numeric_limits< sec_type sec_type_traits
 

Public Member Functions

  TimeValue ()
 
  TimeValue (const sec_type seconds, const nsec_type nanoseconds) SSRC_DECL_THROW(std
 
  TimeValue (const ms_type millisec)
 
TimeValue now ()
 
TimeValue now_mono ()
 
ms_type  to_milliseconds () const
 
sec_type  seconds () const throw ()
 
nsec_type  nanoseconds () const throw ()
 
TimeValue operator+= (const TimeValue &t2)
 
TimeValue operator-= (const TimeValue &t2)
 
template<class Archive >
void  serialize (Archive &ar, const unsigned int)
 

Static Public Member Functions

static sec_type  now_seconds ()
 
static TimeValue  time ()
 

Friends

bool  operator== (const TimeValue &t1, const TimeValue &t2)
 
bool  operator< (const TimeValue &t1, const TimeValue &t2)
 

Detailed Description

Definition at line 41 of file TimeValue.h.

Member Typedef Documentation

§ ms_type

typedef std::int64_t TimeValue::ms_type

Definition at line 71 of file TimeValue.h.

§ nsec_type

typedef long TimeValue::nsec_type

Definition at line 73 of file TimeValue.h.

§ sec_type

typedef time_t TimeValue::sec_type

Definition at line 72 of file TimeValue.h.

§ sec_type_traits

typedef std::numeric_limits<sec_type> TimeValue::sec_type_traits

Definition at line 74 of file TimeValue.h.

Constructor & Destructor Documentation

§ TimeValue() [1/3]

TimeValue::TimeValue ( )
inline

Definition at line 84 of file TimeValue.h.

Referenced by time().

§ TimeValue() [2/3]

TimeValue::TimeValue ( const sec_type  seconds,
const nsec_type  nanoseconds 
)
inline

Definition at line 88 of file TimeValue.h.

References __WISP_BILLION, nanoseconds(), and seconds().

§ TimeValue() [3/3]

TimeValue::TimeValue ( const ms_type  millisec )
inlineexplicit

Definition at line 104 of file TimeValue.h.

Member Function Documentation

§ nanoseconds()

nsec_type TimeValue::nanoseconds ( ) const
throw (
)
inline

Definition at line 136 of file TimeValue.h.

Referenced by TimeValue().

§ now()

TimeValue& TimeValue::now ( )
inline

Definition at line 109 of file TimeValue.h.

§ now_mono()

TimeValue& TimeValue::now_mono ( )
inline

Definition at line 118 of file TimeValue.h.

§ now_seconds()

static sec_type TimeValue::now_seconds ( )
inlinestatic

Definition at line 76 of file TimeValue.h.

§ operator+=()

TimeValue& TimeValue::operator+= ( const TimeValue t2 )
inline

Definition at line 140 of file TimeValue.h.

References __WISP_BILLION.

§ operator-=()

TimeValue& TimeValue::operator-= ( const TimeValue t2 )
inline

Definition at line 152 of file TimeValue.h.

References __WISP_BILLION.

§ seconds()

sec_type TimeValue::seconds ( ) const
throw (
)
inline

Definition at line 132 of file TimeValue.h.

Referenced by TimeValue().

§ serialize()

template<class Archive >
void TimeValue::serialize ( Archive &  ar,
const unsigned  int 
)
inline

Definition at line 176 of file TimeValue.h.

§ time()

static TimeValue TimeValue::time ( )
inlinestatic

Definition at line 80 of file TimeValue.h.

References TimeValue().

§ to_milliseconds()

ms_type TimeValue::to_milliseconds ( ) const
inline

Definition at line 127 of file TimeValue.h.

Friends And Related Function Documentation

§ operator<</h2>

bool operator< ( const TimeValue t1,
const TimeValue t2 
)
friend

Definition at line 169 of file TimeValue.h.

§ operator==

bool operator== ( const TimeValue t1,
const TimeValue t2 
)
friend

Definition at line 164 of file TimeValue.h.


The documentation for this class was generated from the following file:
Savarese Software Research Corporation
Copyright © 2006-2012 Savarese Software Research Corporation. All rights reserved.