Changeset 10553 for branches/ClassificationModelComparison/HeuristicLab.Algorithms.DataAnalysis/3.4/FixedDataAnalysisAlgorithm.cs
- Timestamp:
- 03/05/14 17:30:38 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ClassificationModelComparison/HeuristicLab.Algorithms.DataAnalysis/3.4/FixedDataAnalysisAlgorithm.cs
r7259 r10553 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 2Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2013 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 96 96 private void Run(object state) { 97 97 CancellationToken cancellationToken = (CancellationToken)state; 98 lastUpdateTime = DateTime. Now;98 lastUpdateTime = DateTime.UtcNow; 99 99 System.Timers.Timer timer = new System.Timers.Timer(250); 100 100 timer.AutoReset = true; … … 107 107 timer.Elapsed -= new System.Timers.ElapsedEventHandler(timer_Elapsed); 108 108 timer.Stop(); 109 ExecutionTime += DateTime. Now - lastUpdateTime;109 ExecutionTime += DateTime.UtcNow - lastUpdateTime; 110 110 } 111 111 … … 121 121 System.Timers.Timer timer = (System.Timers.Timer)sender; 122 122 timer.Enabled = false; 123 DateTime now = DateTime. Now;123 DateTime now = DateTime.UtcNow; 124 124 ExecutionTime += now - lastUpdateTime; 125 125 lastUpdateTime = now;
Note: See TracChangeset
for help on using the changeset viewer.