Category5.Profiler.GetElapsedTime C# (CSharp) Метод

GetElapsedTime() публичный статический Метод

public static GetElapsedTime ( string function ) : long
function string
Результат long
        public static long GetElapsedTime(string function)
        {
            if (enableProfiling)
            {
                Stopwatch stopwatch = Timers[function];
                return stopwatch.ElapsedMilliseconds;
            }
            else
            {
                return 0;
            }
        }