Arango.ConsoleTests.Performance.Execute C# (CSharp) Method

Execute() static private method

static private Execute ( System.Action action ) : double
action System.Action
return double
        static double Execute(Action action)
        {
            var stopwatch = Stopwatch.StartNew();

            action();

            return stopwatch.Elapsed.TotalMilliseconds;
        }