Changeset 9343 for trunk/sources/HeuristicLab.DebugEngine
- Timestamp:
- 04/05/13 23:20:28 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.DebugEngine/3.3/DebugEngine.cs
r7259 r9343 155 155 cancellationTokenSource = new CancellationTokenSource(); 156 156 stopPending = false; 157 lastUpdateTime = DateTime. Now;157 lastUpdateTime = DateTime.UtcNow; 158 158 timer.Start(); 159 159 try { … … 166 166 } 167 167 timer.Stop(); 168 ExecutionTime += DateTime. Now - lastUpdateTime;168 ExecutionTime += DateTime.UtcNow - lastUpdateTime; 169 169 cancellationTokenSource.Dispose(); 170 170 cancellationTokenSource = null; … … 242 242 243 243 OnStarted(); 244 lastUpdateTime = DateTime. Now;244 lastUpdateTime = DateTime.UtcNow; 245 245 timer.Start(); 246 246 try { … … 253 253 finally { 254 254 timer.Stop(); 255 ExecutionTime += DateTime. Now - lastUpdateTime;255 ExecutionTime += DateTime.UtcNow - lastUpdateTime; 256 256 257 257 if (IsAtBreakpoint) … … 263 263 System.Timers.Timer timer = (System.Timers.Timer)sender; 264 264 timer.Enabled = false; 265 DateTime now = DateTime. Now;265 DateTime now = DateTime.UtcNow; 266 266 ExecutionTime += now - lastUpdateTime; 267 267 lastUpdateTime = now;
Note: See TracChangeset
for help on using the changeset viewer.