Changeset 9343 for trunk/sources/HeuristicLab.Algorithms.Benchmarks
- Timestamp:
- 04/05/13 23:20:28 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Algorithms.Benchmarks/3.3/BenchmarkAlgorithm.cs
r8962 r9343 327 327 private void Run(object state) { 328 328 CancellationToken cancellationToken = (CancellationToken)state; 329 lastUpdateTime = DateTime. Now;329 lastUpdateTime = DateTime.UtcNow; 330 330 System.Timers.Timer timer = new System.Timers.Timer(250); 331 331 timer.AutoReset = true; … … 352 352 timer.Elapsed -= new System.Timers.ElapsedEventHandler(timer_Elapsed); 353 353 timer.Stop(); 354 ExecutionTime += DateTime. Now - lastUpdateTime;354 ExecutionTime += DateTime.UtcNow - lastUpdateTime; 355 355 } 356 356 } … … 359 359 System.Timers.Timer timer = (System.Timers.Timer)sender; 360 360 timer.Enabled = false; 361 DateTime now = DateTime. Now;361 DateTime now = DateTime.UtcNow; 362 362 ExecutionTime += now - lastUpdateTime; 363 363 lastUpdateTime = now;
Note: See TracChangeset
for help on using the changeset viewer.