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() [1/3]

TimeSpec::TimeSpec ( )
inline

Definition at line 9 of file TimeSpec.h.

9 : tv_sec_(0), tv_nsec_(0) {}

◆ TimeSpec() [2/3]

TimeSpec::TimeSpec ( long  tv_sec,
long  tv_nsec 
)
inline

Definition at line 11 of file TimeSpec.h.

◆ TimeSpec() [3/3]

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)) {}

Member Function Documentation

◆ get_timespec()

timespec TimeSpec::get_timespec ( ) const

◆ set_tv_nsec()

void TimeSpec::set_tv_nsec ( long  value)
inline

◆ set_tv_sec()

void TimeSpec::set_tv_sec ( long  value)
inline

◆ tv_nsec()

long TimeSpec::tv_nsec ( ) const
inline

Definition at line 16 of file TimeSpec.h.

16 { return tv_nsec_; }

References tv_nsec_.

◆ tv_sec()

long TimeSpec::tv_sec ( ) const
inline

Definition at line 15 of file TimeSpec.h.

15 { return tv_sec_; }

References tv_sec_.

Member Data Documentation

◆ tv_nsec_

long TimeSpec::tv_nsec_
private

Definition at line 25 of file TimeSpec.h.

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

◆ tv_sec_

long TimeSpec::tv_sec_
private

Definition at line 24 of file TimeSpec.h.

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

TimeSpec::tv_nsec
long tv_nsec() const
Definition: TimeSpec.h:16
TimeSpec::tv_sec
long tv_sec() const
Definition: TimeSpec.h:15
TimeSpec::tv_sec_
long tv_sec_
Definition: TimeSpec.h:24
relativeConstraints.value
value
Definition: relativeConstraints.py:53
TimeSpec::tv_nsec_
long tv_nsec_
Definition: TimeSpec.h:25