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

typedef std::int64_t TimeValue::ms_type

Definition at line 71 of file TimeValue.h.

typedef long TimeValue::nsec_type

Definition at line 73 of file TimeValue.h.

typedef time_t TimeValue::sec_type

Definition at line 72 of file TimeValue.h.

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

Definition at line 74 of file TimeValue.h.

Constructor & Destructor Documentation

TimeValue::TimeValue ( )
inline

Definition at line 84 of file TimeValue.h.

Referenced by time().

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::TimeValue ( const ms_type  millisec )
inlineexplicit

Definition at line 104 of file TimeValue.h.

Member Function Documentation

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

Definition at line 136 of file TimeValue.h.

Referenced by TimeValue().

TimeValue& TimeValue::now ( )
inline

Definition at line 109 of file TimeValue.h.

TimeValue& TimeValue::now_mono ( )
inline

Definition at line 118 of file TimeValue.h.

static sec_type TimeValue::now_seconds ( )
inlinestatic

Definition at line 76 of file TimeValue.h.

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

Definition at line 140 of file TimeValue.h.

References __WISP_BILLION.

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

Definition at line 152 of file TimeValue.h.

References __WISP_BILLION.

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

Definition at line 132 of file TimeValue.h.

Referenced by TimeValue().

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

Definition at line 176 of file TimeValue.h.

static TimeValue TimeValue::time ( )
inlinestatic

Definition at line 80 of file TimeValue.h.

References TimeValue().

ms_type TimeValue::to_milliseconds ( ) const
inline

Definition at line 127 of file TimeValue.h.

Friends And Related Function Documentation

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

Definition at line 169 of file TimeValue.h.

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.