Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

LoopStatus Class Reference

#include <Utils.h>

List of all members.


Detailed Description

Provides methods to report the progress of a loop and project time to completion.

Author:
Michael J. Meyer

Definition at line 120 of file Utils.h.

Public Member Functions

 LoopStatus (string loopTitle)
void clear ()
void consoleReport (int n, int N)


Constructor & Destructor Documentation

LoopStatus::LoopStatus string    loopTitle [inline]
 

Constructor

Parameters:
loopTitle string descriptive of loop computation.

Definition at line 136 of file Utils.h.


Member Function Documentation

void LoopStatus::clear  
 

Clears last string from console

void LoopStatus::consoleReport int    n,
int    N
 

Reports current progress and projects time left from a loop over N iterations when the current iteration is n. Progress report has to be called at iteration n=N/100 when it times the loop and uses this time to project time to completion every time it is called thereafter. Progress is reported to the console.

Parameters:
n Current loop iteration.
N Total number of iterations in loop.

Referenced by RandomObject< RangeType >::covarianceMatrix(), RandomObject< RangeType >::expectation(), and RandomObject< RangeType >::meanAndVariance().


The documentation for this class was generated from the following file:
Generated on Mon Sep 22 02:16:33 2003 for Libor-Library by doxygen1.3-rc3