Scippy

UG

Ubiquity Generator framework

ParaTimer Class Referenceabstract

class ParaTimer More...

#include <paraTimer.h>

Inheritance diagram for ParaTimer:
ParaSysTimer ParaTimerMpi ParaTimerTh

Public Member Functions

 ParaTimer ()
 constructor More...
 
virtual ~ParaTimer ()
 destructor More...
 
void setOffset (double time)
 
virtual void init (ParaComm *paraComm)=0
 initialize timer 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, ParaTimerMpi, and ParaTimerTh.

Referenced by BbParaNodesMerger::addNodeToMergeNodeStructs(), ScipParaInitiator::addRootNodeCuts(), BbParaLoadCoordinator::BbParaLoadCoordinator(), BbParaNodesMerger::generateMergeNodesCandidates(), BbParaSolver::getElapsedTimeOfNodeSolving(), ParaSolver::getElapsedTimeOfTaskSolving(), BbParaSolver::getThresholdValue(), ScipParaInitiator::init(), BbParaSolver::iReceiveMessages(), BbParaRacingSolverPool::isWinnerDecided(), 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::restartInRampDownPhase(), 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(), BbParaSolver::setRootNodeTime(), ScipParaSolver::solve(), BbParaSolverPoolForMinimization::switchInCollectingMode(), BbParaSolverPool::switchOutCollectingMode(), BbParaLoadCoordinator::updateCheckpointFiles(), BbParaSolver::waitAckCompletion(), BbParaSolver::waitNotificationIdMessage(), BbParaSolver::waitToken(), BbParaLoadCoordinator::warmStart(), BbParaLoadCoordinator::writeLoadCoordinatorStatisticsToCheckpointFile(), BbParaLoadCoordinator::writeSubtreeInfo(), BbParaLoadCoordinator::~BbParaLoadCoordinator(), and ScipParaSolver::~ScipParaSolver().

◆ init()

virtual void init ( ParaComm paraComm)
pure virtual

initialize timer


if you want to set original initial time,

you can do it init()

Parameters
paraCommcommunicator used

Implemented in ParaTimerMpi, ParaTimerTh, and ParaSysTimer.

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

◆ setOffset()

void setOffset ( double  time)

Definition at line 74 of file paraTimer.h.

References ParaTimer::offset.

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(), ParaTimerTh::getElapsedTime(), and ParaTimer::setOffset().