Changeset 5240 for trunk/sources/HeuristicLab.Core/3.3/Engine.cs
- Timestamp:
- 01/08/11 05:35:58 (14 years ago)
- File:
-
- 1 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 }
Note: See TracChangeset
for help on using the changeset viewer.