CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
TimeSpec Class Reference

#include <TimeSpec.h>

Public Member Functions

timespec get_timespec () const
 
void set_tv_nsec (long value)
 
void set_tv_sec (long value)
 
 TimeSpec ()
 
 TimeSpec (long tv_sec, long tv_nsec)
 
 TimeSpec (timespec const &ts)
 
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 9 of file TimeSpec.h.

9 : tv_sec_(0), tv_nsec_(0) {}
long tv_sec_
Definition: TimeSpec.h:24
long tv_nsec_
Definition: TimeSpec.h:25
TimeSpec::TimeSpec ( long  tv_sec,
long  tv_nsec 
)
inline

Definition at line 11 of file TimeSpec.h.

long tv_sec() const
Definition: TimeSpec.h:15
long tv_nsec() const
Definition: TimeSpec.h:16
long tv_sec_
Definition: TimeSpec.h:24
long tv_nsec_
Definition: TimeSpec.h:25
TimeSpec::TimeSpec ( timespec const &  ts)
inline

Definition at line 13 of file TimeSpec.h.

13 : tv_sec_(static_cast<long>(ts.tv_sec)), tv_nsec_(static_cast<long>(ts.tv_nsec)) {}
long tv_sec_
Definition: TimeSpec.h:24
long tv_nsec_
Definition: TimeSpec.h:25

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 16 of file TimeSpec.h.

References tv_nsec_.

16 { return tv_nsec_; }
long tv_nsec_
Definition: TimeSpec.h:25
long TimeSpec::tv_sec ( ) const
inline

Definition at line 15 of file TimeSpec.h.

References tv_sec_.

15 { return tv_sec_; }
long tv_sec_
Definition: TimeSpec.h:24

Member Data Documentation

long TimeSpec::tv_nsec_
private

Definition at line 25 of file TimeSpec.h.

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

long TimeSpec::tv_sec_
private

Definition at line 24 of file TimeSpec.h.

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