Changeset 15703 for branches/1614_GeneralizedQAP/HeuristicLab.Problems.GeneralizedQuadraticAssignment.Algorithms/3.3/Infrastructure
- Timestamp:
- 01/31/18 22:04:21 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/1614_GeneralizedQAP/HeuristicLab.Problems.GeneralizedQuadraticAssignment.Algorithms/3.3/Infrastructure/Algorithms/ContextAlgorithm.cs
r15700 r15703 191 191 192 192 protected override void OnPaused() { 193 base.OnPaused();194 193 elapsed += stopwatch.Elapsed; 195 194 stopwatch.Reset(); 196 195 firstHitGraph.Values[firstHitGraph.Values.Count - 1] = Tuple.Create(elapsed.TotalSeconds, Context.BestQuality); 196 base.OnPaused(); 197 197 } 198 198 199 199 protected override void OnStopped() { 200 base.OnStopped();201 200 if (stopwatch.IsRunning) { 202 201 elapsed += stopwatch.Elapsed; … … 204 203 firstHitGraph.Values[firstHitGraph.Values.Count - 1] = Tuple.Create(elapsed.TotalSeconds, Context.BestQuality); 205 204 } 205 // base call must be done last as the results will be cloned and a run is created 206 base.OnStopped(); 206 207 } 207 208
Note: See TracChangeset
for help on using the changeset viewer.