Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

Timeval Class Reference

#include <MNTimeval.h>

List of all members.

Public Types

enum  Now { NOW }

Public Member Functions

 Timeval ()
 Timeval (const Timeval &tv)
 Timeval (const C_timeval &tv)
 Timeval (int microseconds)
 Timeval (size_t microseconds)
 Timeval (int64_t microseconds)
 Timeval (double seconds)
 Timeval (Now)
Timevaloperator= (const Timeval &tv)
Timevaloperator= (int microseconds)
Timevaloperator= (size_t microseconds)
Timevaloperator= (int64_t microseconds)
Timevaloperator= (double seconds)
Timevaloperator= (Now)
Timevaloperator+= (unsigned int tv)
Timevaloperator+= (Now)
Timevaloperator-= (unsigned int tv)
Timevaloperator-= (const Timeval &tv)
size_t asUsec () const
int64_t asUsec64 () const
double asSec () const
void asNPT (ostream &ostr) const

Static Public Attributes

const size_t MAX_USEC = 1000000


Member Enumeration Documentation

enum Timeval::Now
 

Enumeration values:
NOW 


Constructor & Destructor Documentation

Timeval::Timeval  ) 
 

Timeval::Timeval const Timeval tv  ) 
 

Timeval::Timeval const C_timeval tv  ) 
 

Timeval::Timeval int  microseconds  ) 
 

Timeval::Timeval size_t  microseconds  ) 
 

Timeval::Timeval int64_t  microseconds  ) 
 

Timeval::Timeval double  seconds  ) 
 

Timeval::Timeval Now   ) 
 


Member Function Documentation

void Timeval::asNPT ostream &  ostr  )  const
 

Write the timeval format into the output stream in a complete NPT (normal play time) string of the form hh:mm:ss.dd where dd is a fraction of a second.

double Timeval::asSec  )  const
 

size_t Timeval::asUsec  )  const
 

int64_t Timeval::asUsec64  )  const
 

Timeval& Timeval::operator+= Now   ) 
 

Timeval& Timeval::operator+= unsigned int  tv  ) 
 

Timeval& Timeval::operator-= const Timeval tv  ) 
 

Timeval& Timeval::operator-= unsigned int  tv  ) 
 

Timeval& Timeval::operator= Now   ) 
 

Timeval& Timeval::operator= double  seconds  ) 
 

Timeval& Timeval::operator= int64_t  microseconds  ) 
 

Timeval& Timeval::operator= size_t  microseconds  ) 
 

Timeval& Timeval::operator= int  microseconds  ) 
 

Timeval& Timeval::operator= const Timeval tv  ) 
 


Member Data Documentation

const size_t Timeval::MAX_USEC = 1000000 [static]
 


The documentation for this class was generated from the following file:
Generated on Sun Mar 6 13:36:21 2005 for Komssys by doxygen 1.3.8