Changeset 5240
- Timestamp:
- 01/08/11 05:35:58 (14 years ago)
- Location:
- trunk/sources
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Core/3.3/Engine.cs
r5193 r5240 147 147 OnStarted(); 148 148 lastUpdateTime = DateTime.Now; 149 System.Timers.Timer timer = new System.Timers.Timer( 100);149 System.Timers.Timer timer = new System.Timers.Timer(250); 150 150 timer.AutoReset = true; 151 151 timer.Elapsed += new System.Timers.ElapsedEventHandler(timer_Elapsed); … … 165 165 166 166 private void timer_Elapsed(object sender, System.Timers.ElapsedEventArgs e) { 167 System.Timers.Timer timer = (System.Timers.Timer)sender; 168 timer.Enabled = false; 167 169 DateTime now = DateTime.Now; 168 170 ExecutionTime += now - lastUpdateTime; 169 171 lastUpdateTime = now; 172 timer.Enabled = true; 170 173 } 171 174 } -
trunk/sources/HeuristicLab.DebugEngine/3.3/DebugEngine.cs
r5193 r5240 64 64 65 65 private void InitializeTimer() { 66 timer = new System.Timers.Timer( 100);66 timer = new System.Timers.Timer(250); 67 67 timer.AutoReset = true; 68 68 timer.Elapsed += new System.Timers.ElapsedEventHandler(timer_Elapsed); … … 261 261 262 262 private void timer_Elapsed(object sender, System.Timers.ElapsedEventArgs e) { 263 System.Timers.Timer timer = (System.Timers.Timer)sender; 264 timer.Enabled = false; 263 265 DateTime now = DateTime.Now; 264 266 ExecutionTime += now - lastUpdateTime; 265 267 lastUpdateTime = now; 268 timer.Enabled = true; 266 269 } 267 270 #endregion
Note: See TracChangeset
for help on using the changeset viewer.