CMS 3D CMS Logo

Public Member Functions | Private Attributes

TimeSpec Class Reference

#include <TimeSpec.h>

List of all members.

Public Member Functions

timespec get_timespec () const
void set_tv_nsec (long value)
void set_tv_sec (long value)
 TimeSpec (timespec const &ts)
 TimeSpec (long tv_sec, long tv_nsec)
 TimeSpec ()
long tv_nsec () const
long tv_sec () const

Private Attributes

long tv_nsec_
long tv_sec_

Detailed Description

Definition at line 7 of file TimeSpec.h.


Constructor & Destructor Documentation

TimeSpec::TimeSpec ( ) [inline]

Definition at line 11 of file TimeSpec.h.

             :
    tv_sec_(0),
    tv_nsec_(0) {}
TimeSpec::TimeSpec ( long  tv_sec,
long  tv_nsec 
) [inline]

Definition at line 15 of file TimeSpec.h.

TimeSpec::TimeSpec ( timespec const &  ts) [inline]

Definition at line 19 of file TimeSpec.h.

                               :
    tv_sec_(static_cast<long>(ts.tv_sec)),
    tv_nsec_(static_cast<long>(ts.tv_nsec)) {}

Member Function Documentation

timespec TimeSpec::get_timespec ( ) const
void TimeSpec::set_tv_nsec ( long  value) [inline]
void TimeSpec::set_tv_sec ( long  value) [inline]
long TimeSpec::tv_nsec ( ) const [inline]

Definition at line 24 of file TimeSpec.h.

References tv_nsec_.

{ return tv_nsec_; }
long TimeSpec::tv_sec ( ) const [inline]

Definition at line 23 of file TimeSpec.h.

References tv_sec_.

{ return tv_sec_; } 

Member Data Documentation

long TimeSpec::tv_nsec_ [private]

Definition at line 34 of file TimeSpec.h.

Referenced by get_timespec(), set_tv_nsec(), and tv_nsec().

long TimeSpec::tv_sec_ [private]

Definition at line 33 of file TimeSpec.h.

Referenced by get_timespec(), set_tv_sec(), and tv_sec().