oasys::ProgressPrinter Class Reference

#include <ProgressPrinter.h>

List of all members.


Detailed Description

Definition at line 47 of file ProgressPrinter.h.

Public Member Functions

 ProgressPrinter (const char *fmt=NULL,...)
 Initialize the progress meter.
void start (const char *fmt,...)
 Restart the progress meter.
void done (const char *fmt=" done",...)
 Print the "done" message, along with the elapsed time, plus any additional info.

Protected Attributes

timeval start_


Constructor & Destructor Documentation

oasys::ProgressPrinter::ProgressPrinter ( const char *  fmt = NULL,
  ... 
)

Initialize the progress meter.

Definition at line 47 of file ProgressPrinter.cc.

References dtnsim::gettimeofday(), and start_.


Member Function Documentation

void oasys::ProgressPrinter::start ( const char *  fmt,
  ... 
)

Restart the progress meter.

Definition at line 64 of file ProgressPrinter.cc.

References dtnsim::gettimeofday(), and start_.

void oasys::ProgressPrinter::done ( const char *  fmt = " done",
  ... 
)

Print the "done" message, along with the elapsed time, plus any additional info.

Definition at line 80 of file ProgressPrinter.cc.

References dtnsim::gettimeofday(), start_, and TIMEVAL_DIFF_MSEC.


Member Data Documentation

struct timeval oasys::ProgressPrinter::start_ [protected]

Definition at line 66 of file ProgressPrinter.h.

Referenced by done(), ProgressPrinter(), and start().


The documentation for this class was generated from the following files:
Generated on Fri Dec 22 14:48:08 2006 for DTN Reference Implementation by  doxygen 1.5.1