Scippy

UG

Ubiquity Generator framework

ParaTimer Class Referenceabstract

class ParaTimer More...

#include <paraTimer.h>

+ Inheritance diagram for ParaTimer:

Public Member Functions

 ParaTimer ()
 constructor More...
 
virtual ~ParaTimer ()
 destructor More...
 
void setOffset (double time)
 
virtual void init (ParaComm *paraComm)=0
 

if you want to set original initial time,

you can do it init()

More...
 
virtual double getElapsedTime ()=0
 get elapsed time More...
 

Protected Attributes

double offset
 offset of start time More...
 

Detailed Description

class ParaTimer

Definition at line 48 of file paraTimer.h.

Constructor & Destructor Documentation

◆ ParaTimer()

ParaTimer ( )

constructor

Definition at line 60 of file paraTimer.h.

◆ ~ParaTimer()

virtual ~ParaTimer ( )
virtual

destructor

Definition at line 69 of file paraTimer.h.

Member Function Documentation

◆ getElapsedTime()

virtual double getElapsedTime ( )
pure virtual

get elapsed time

Returns
elapsed time

Implemented in ParaSysTimer, ParaTimerTh, and ParaTimerMpi.

Referenced by BbParaNodesMerger::addNodeToMergeNodeStructs(), BbParaLoadCoordinator::BbParaLoadCoordinator(), BbParaLoadCoordinator::changeSearchStrategyOfAllSolversToOriginalSearch(), BbParaNodesMerger::generateMergeNodesCandidates(), BbParaSolver::getElapsedTimeOfNodeSolving(), ParaSolver::getElapsedTimeOfTaskSolving(), BbParaSolver::getThresholdValue(), BbParaSolver::iReceiveMessages(), main(), BbParaNodesMerger::mergeNodes(), BbParaLoadCoordinator::newRacing(), BbParaSolver::notificationIsNecessary(), BbParaLoadCoordinator::outputTabularSolvingStatus(), BbParaLoadCoordinator::processRacingRampUpTagCompletionOfCalculation(), BbParaLoadCoordinator::processRacingRampUpTagSolverState(), BbParaLoadCoordinator::processTagAnotherNodeRequest(), BbParaLoadCoordinator::processTagCompletionOfCalculation(), BbParaLoadCoordinator::processTagNewSubtreeRootNode(), BbParaSolver::processTagRampUp(), BbParaLoadCoordinator::processTagReassignSelfSplitSubtreeRootNode(), BbParaLoadCoordinator::processTagSelfSlpitNodeCalcuationState(), BbParaLoadCoordinator::processTagSolution(), BbParaLoadCoordinator::processTagSolverState(), BbParaLoadCoordinator::processTagSubtreeRootNodeStartComputation(), BbParaLoadCoordinator::processTagSubtreeRootNodeToBeRemoved(), BbParaLoadCoordinator::processTagTask(), BbParaSolver::processTagWinnerRacingRampUpParamSet(), BbParaSolver::receiveNewTaskAndReactivate(), BbParaNodesMerger::regenerateMergeNodesCandidates(), ScipParaSolver::reinitialize(), BbParaLoadCoordinator::restartRacing(), BbParaLoadCoordinator::run(), BbParaSolver::run(), runSolverThread(), ScipParaSolver::ScipParaSolver(), BbParaSolver::sendCompletionOfCalculation(), BbParaSolver::sendCompletionOfCalculationWithoutSolving(), BbParaLoadCoordinator::sendInterruptRequest(), BbParaSolver::sendParaNode(), BbParaLoadCoordinator::sendParaTasksToIdleSolvers(), BbParaSolver::sendSolverState(), BbParaSolver::sendSolverTerminationState(), ScipParaSolver::setBakSettings(), ParaTimer::setOffset(), BbParaSolver::setRootNodeTime(), ScipParaSolver::solve(), BbParaSolver::waitAckCompletion(), BbParaSolver::waitNotificationIdMessage(), BbParaSolver::waitToken(), BbParaLoadCoordinator::writeSubtreeInfo(), BbParaLoadCoordinator::~BbParaLoadCoordinator(), and ScipParaSolver::~ScipParaSolver().

◆ init()

virtual void init ( ParaComm paraComm)
pure virtual


if you want to set original initial time,

you can do it init()

initialize timer

Parameters
paraCommcommunicator used

Implemented in ParaSysTimer, ParaTimerMpi, and ParaTimerTh.

Referenced by main(), ParaSolver::ParaSolver(), and ParaTimer::setOffset().

◆ setOffset()

void setOffset ( double  time)

Definition at line 74 of file paraTimer.h.

References ParaTimer::getElapsedTime(), and ParaTimer::init().

Referenced by ScipParaSolver::ScipParaSolver().

Member Data Documentation

◆ offset

double offset
protected

offset of start time

Definition at line 53 of file paraTimer.h.

Referenced by ParaTimerMpi::getElapsedTime(), and ParaTimerTh::getElapsedTime().