xosview  1.23
About: xosview is an X Windows based system monitor (cpu, memory, swap and network usage; interrupt and serial activities; load average).
  Fossies Dox: xosview-1.23.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

TimeVal Class Reference

#include <timeval.h>

Public Member Functions

 TimeVal (unsigned long sec=0, unsigned long usec=0)
 
 TimeVal (const struct timeval &val)
 
unsigned long sec (void) const
 
unsigned long usec (void) const
 
void sec (unsigned long s)
 
void usec (unsigned long us)
 
 operator struct timeval (void) const
 
std::ostream & printOn (std::ostream &os) const
 

Private Attributes

struct timeval _val
 

Detailed Description

Definition at line 13 of file timeval.h.

Constructor & Destructor Documentation

◆ TimeVal() [1/2]

TimeVal::TimeVal ( unsigned long  sec = 0,
unsigned long  usec = 0 
)
inline

Definition at line 15 of file timeval.h.

References _val, sec(), and usec().

◆ TimeVal() [2/2]

TimeVal::TimeVal ( const struct timeval &  val)
inline

Definition at line 19 of file timeval.h.

References _val.

Member Function Documentation

◆ operator struct timeval()

TimeVal::operator struct timeval ( void  ) const
inline

Definition at line 26 of file timeval.h.

References _val.

◆ printOn()

std::ostream& TimeVal::printOn ( std::ostream &  os) const
inline

Definition at line 28 of file timeval.h.

Referenced by operator<<().

◆ sec() [1/2]

void TimeVal::sec ( unsigned long  s)
inline

Definition at line 23 of file timeval.h.

References _val.

◆ sec() [2/2]

unsigned long TimeVal::sec ( void  ) const
inline

Definition at line 21 of file timeval.h.

References _val.

Referenced by TimeVal().

◆ usec() [1/2]

void TimeVal::usec ( unsigned long  us)
inline

Definition at line 24 of file timeval.h.

References _val.

◆ usec() [2/2]

unsigned long TimeVal::usec ( void  ) const
inline

Definition at line 22 of file timeval.h.

References _val.

Referenced by TimeVal().

Member Data Documentation

◆ _val

struct timeval TimeVal::_val
private

Definition at line 28 of file timeval.h.

Referenced by operator struct timeval(), sec(), TimeVal(), and usec().


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