Public Member Functions | Protected Attributes
cSimpleTime Class Reference

Very simple class to measure elapsed time. More...

#include <simpletime.h>

List of all members.

Public Member Functions

 cSimpleTime ()
 Constructor: store current time ("now") internally.
double Elapsed (void) const
 Return time in seconds elapsed between the time stored in the object and now.
double Elapsed (cSimpleTime const &other) const
 Return time in seconds elapsed between the time stored in the object and other.
long Elapsed_us (void) const
 Return time in micro seconds elapsed between the time stored in the object and now.
long Elapsed_us (cSimpleTime const &other) const
 Return time in micro seconds elapsed between the time stored in the object and other.
void StoreNow (void)
 Store current time internally.
timeval Timeval (void)
 Return the time stored as C struct timeval.

Protected Attributes

struct timeval a_time

Detailed Description

Very simple class to measure elapsed time.

Definition at line 101 of file simpletime.h.


Constructor & Destructor Documentation

Constructor: store current time ("now") internally.

Definition at line 112 of file simpletime.h.


Member Function Documentation

double cSimpleTime::Elapsed ( void  ) const [inline]

Return time in seconds elapsed between the time stored in the object and now.

Definition at line 132 of file simpletime.h.

double cSimpleTime::Elapsed ( cSimpleTime const &  other) const [inline]

Return time in seconds elapsed between the time stored in the object and other.

Definition at line 173 of file simpletime.h.

long cSimpleTime::Elapsed_us ( void  ) const [inline]

Return time in micro seconds elapsed between the time stored in the object and now.

Definition at line 142 of file simpletime.h.

long cSimpleTime::Elapsed_us ( cSimpleTime const &  other) const [inline]

Return time in micro seconds elapsed between the time stored in the object and other.

Definition at line 183 of file simpletime.h.

void cSimpleTime::StoreNow ( void  ) [inline]

Store current time internally.

Definition at line 120 of file simpletime.h.

timeval cSimpleTime::Timeval ( void  ) [inline]

Return the time stored as C struct timeval.

Definition at line 194 of file simpletime.h.


Member Data Documentation

struct timeval cSimpleTime::a_time [protected]

Definition at line 107 of file simpletime.h.


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


schunk_sdh
Author(s): Mathias Luedtke , Florian Weisshardt
autogenerated on Sat Jun 8 2019 20:25:21