You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
455 B
19 lines
455 B
using System.Diagnostics;
|
|
|
|
namespace DealerSelection.Common.Profiler
|
|
{
|
|
public static class Profiler
|
|
{
|
|
private static Stopwatch watch;
|
|
public static void StartOperation(string operationName)
|
|
{
|
|
watch = System.Diagnostics.Stopwatch.StartNew();
|
|
}
|
|
public static void EndOperation()
|
|
{
|
|
watch.Stop();
|
|
var timeToExecute = watch.ElapsedMilliseconds;
|
|
|
|
}
|
|
}
|
|
}
|