19 using System.Collections.Generic;
28 public long Duration {
get;
private set; }
32 var watch =
System.Diagnostics.Stopwatch.StartNew();
33 for (
int i = 0; i < 40000; i++)
37 for (
int j = 0; j < n; j++)
41 if (IsCancellationRequested)
break;
44 Duration = watch.ElapsedMilliseconds;
45 Console.WriteLine(String.Format(
"Process took {0} ms", Duration));
46 return !IsCancellationRequested;
override bool Execute()
This method may be called by a ProcessViewModelBase-derived class in a worker task that wraps this me...
Abstract base class for models that perform a lengthy process asynchronously.