public class StopWatch extends Object implements AlgorithmStartsListener, AlgorithmEndsListener
| Constructor and Description |
|---|
StopWatch() |
| Modifier and Type | Method and Description |
|---|---|
double |
getCompTimeInSeconds() |
double |
getCurrTimeInSeconds() |
void |
informAlgorithmEnds(VehicleRoutingProblem problem,
Collection<VehicleRoutingProblemSolution> solutions) |
void |
informAlgorithmStarts(VehicleRoutingProblem problem,
VehicleRoutingAlgorithm algorithm,
Collection<VehicleRoutingProblemSolution> solutions) |
void |
reset() |
void |
start() |
void |
stop() |
String |
toString() |
public void informAlgorithmStarts(VehicleRoutingProblem problem, VehicleRoutingAlgorithm algorithm, Collection<VehicleRoutingProblemSolution> solutions)
informAlgorithmStarts in interface AlgorithmStartsListenerpublic double getCompTimeInSeconds()
public void informAlgorithmEnds(VehicleRoutingProblem problem, Collection<VehicleRoutingProblemSolution> solutions)
informAlgorithmEnds in interface AlgorithmEndsListenerpublic void stop()
public void start()
public void reset()
public double getCurrTimeInSeconds()
Copyright © 2013–2020. All rights reserved.