Savarese Software Research Corporation
utility::TimeValue Class Reference

#include <TimeValue.h>

List of all members.

Public Types

typedef std::int64_t  ms_type
typedef time_t  sec_type
typedef long  nsec_type
typedef boost::integer_traits
< 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 43 of file TimeValue.h.


Member Typedef Documentation

typedef std::int64_t utility::TimeValue::ms_type

Definition at line 73 of file TimeValue.h.

Definition at line 75 of file TimeValue.h.

Definition at line 74 of file TimeValue.h.

typedef boost::integer_traits<sec_type> utility::TimeValue::sec_type_traits

Definition at line 76 of file TimeValue.h.


Constructor & Destructor Documentation

utility::TimeValue::TimeValue ( ) [inline]

Definition at line 86 of file TimeValue.h.

utility::TimeValue::TimeValue ( const sec_type  seconds,
const nsec_type  nanoseconds 
) [inline]

Definition at line 90 of file TimeValue.h.

References __WISP_BILLION.

utility::TimeValue::TimeValue ( const ms_type  millisec ) [inline, explicit]

Definition at line 106 of file TimeValue.h.


Member Function Documentation

nsec_type utility::TimeValue::nanoseconds ( ) const throw () [inline]

Definition at line 138 of file TimeValue.h.

TimeValue& utility::TimeValue::now ( ) [inline]

Definition at line 111 of file TimeValue.h.

Referenced by time().

TimeValue& utility::TimeValue::now_mono ( ) [inline]

Definition at line 120 of file TimeValue.h.

static sec_type utility::TimeValue::now_seconds ( ) [inline, static]

Definition at line 78 of file TimeValue.h.

TimeValue& utility::TimeValue::operator+= ( const TimeValue t2 ) [inline]

Definition at line 142 of file TimeValue.h.

References __WISP_BILLION.

TimeValue& utility::TimeValue::operator-= ( const TimeValue t2 ) [inline]

Definition at line 154 of file TimeValue.h.

References __WISP_BILLION.

sec_type utility::TimeValue::seconds ( ) const throw () [inline]

Definition at line 134 of file TimeValue.h.

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

Definition at line 178 of file TimeValue.h.

static TimeValue utility::TimeValue::time ( ) [inline, static]

Definition at line 82 of file TimeValue.h.

References now().

ms_type utility::TimeValue::to_milliseconds ( ) const [inline]

Definition at line 129 of file TimeValue.h.


Friends And Related Function Documentation

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

Definition at line 171 of file TimeValue.h.

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

Definition at line 166 of file TimeValue.h.


The documentation for this class was generated from the following file:

Savarese Software Research Corporation
Copyright © 2006-2010 Savarese Software Research Corporation. All rights reserved.