CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 11 of file TimeSpec.h.

11  :
12  tv_sec_(0),
13  tv_nsec_(0) {}
long tv_sec_
Definition: TimeSpec.h:33
long tv_nsec_
Definition: TimeSpec.h:34
TimeSpec::TimeSpec ( long  tv_sec,
long  tv_nsec 
)
inline

Definition at line 15 of file TimeSpec.h.

15  :
16  tv_sec_(tv_sec),
17  tv_nsec_(tv_nsec) {}
long tv_sec() const
Definition: TimeSpec.h:23
long tv_nsec() const
Definition: TimeSpec.h:24
long tv_sec_
Definition: TimeSpec.h:33
long tv_nsec_
Definition: TimeSpec.h:34
TimeSpec::TimeSpec ( timespec const &  ts)
inline

Definition at line 19 of file TimeSpec.h.

19  :
20  tv_sec_(static_cast<long>(ts.tv_sec)),
21  tv_nsec_(static_cast<long>(ts.tv_nsec)) {}
long tv_sec_
Definition: TimeSpec.h:33
long tv_nsec_
Definition: TimeSpec.h:34

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_.

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

Definition at line 23 of file TimeSpec.h.

References tv_sec_.

23 { return tv_sec_; }
long tv_sec_
Definition: TimeSpec.h:33

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().