#include <TimeStamp.h>
Public Member Functions | |
| Timer (void) | |
| ~Timer () | |
| ostream & | timeStamp (ostream &os) |
Private Member Functions | |
| Timer (const Timer &) | |
| Timer & | operator= (const Timer &) |
Private Attributes | |
| int | numStamps |
| clock_t | firstStamp |
| clock_t | lastStamp |
Definition at line 49 of file TimeStamp.h.
| Timer::Timer | ( | void | ) |
Definition at line 47 of file TimeStamp.cpp.
00048 : numStamps( 0 ), firstStamp( clock() ), lastStamp( firstStamp ) 00049 { 00050 }
| Timer::~Timer | ( | ) |
| Timer::Timer | ( | const Timer & | ) | [private] |
| ostream & Timer::timeStamp | ( | ostream & | os | ) |
Definition at line 57 of file TimeStamp.cpp.
References firstStamp, lastStamp, and numStamps.
Referenced by operator<<().
00058 { 00059 00060 clock_t now = clock(); 00061 00062 os << " Time stamp: " << ++numStamps 00063 << "\t Since Start: " << now - firstStamp 00064 << "\t Since Last: " << now - lastStamp << endl; 00065 00066 lastStamp = now; 00067 return os; 00068 }
Here is the caller graph for this function:

int Timer::numStamps [private] |
clock_t Timer::firstStamp [private] |
clock_t Timer::lastStamp [private] |
1.5.2