Category5.Profiler.EndTime C# (CSharp) Méthode

EndTime() public static méthode

public static EndTime ( string function, bool outputToDebug ) : void
function string
outputToDebug bool
Résultat void
        public static void EndTime(string function, bool outputToDebug)
        {
            if (enableProfiling)
            {
                Stopwatch stopwatch = Timers[function];
                stopwatch.Stop();

                if (outputToDebug)
                {
                    AddToDebugOutput(function + ": " + GetElapsedTime(function).ToString() + "\n");
                }
            }
        }