private double ExecuteInterface(IInterface something)
        {
            var stopwatch = Stopwatch.StartNew();
            something.Execute();
            stopwatch.Stop();

            var ticks = stopwatch.ElapsedTicks;
            var nanoseconds = GetNanoseconds(ticks);

            return nanoseconds;
        }
Ejemplo n.º 2
0
        private double ExecuteInterface(IInterface something)
        {
            var stopwatch = Stopwatch.StartNew();

            something.Execute();
            stopwatch.Stop();

            var ticks       = stopwatch.ElapsedTicks;
            var nanoseconds = GetNanoseconds(ticks);

            return(nanoseconds);
        }