xmscore  1.0
xms::Observer::impl Class Reference

Implementation of the observer class. More...

Public Member Functions

void BeginOperationString ()
 Starts the timer to know the elapsed time for the operation and to estimate the time remaining.
 
void EndOperation ()
 Stops the timer.
 
double ElapsedTimeInSeconds ()
 Returns the elapsed time for the operation being observed. More...
 
double EstimatedTimeRemainingInSec (double a_percentComplete, double a_elapsedTime)
 Returns the elapsed time for the operation being observed. More...
 

Public Attributes

boost::timer::cpu_timer m_timer
 timer to get elapsed time
 
double m_percentComplete
 percent complete
 

Detailed Description

Implementation of the observer class.

Definition at line 42 of file Observer.cpp.

Member Function Documentation

◆ ElapsedTimeInSeconds()

double xms::Observer::impl::ElapsedTimeInSeconds ( )

Returns the elapsed time for the operation being observed.

Returns
Elapsed time in seconds.

Definition at line 182 of file Observer.cpp.

References m_timer.

◆ EstimatedTimeRemainingInSec()

double xms::Observer::impl::EstimatedTimeRemainingInSec ( double  a_percentComplete,
double  a_elapsedTime 
)

Returns the elapsed time for the operation being observed.

Parameters
a_percentCompleteThe percent complete between 0.0 and 1.0.
a_elapsedTime???
Returns
Elapsed time in seconds.

Definition at line 196 of file Observer.cpp.


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