Ballz.Utils.PerformanceReporter.PerformanceReporter C# (CSharp) Méthode

PerformanceReporter() public méthode

public PerformanceReporter ( Ballz game ) : System
game Ballz
Résultat System
        public PerformanceReporter(Ballz game)
        {
            StackFrame frame = new StackFrame(1);
            var method = frame.GetMethod();
            var type = method.DeclaringType;
            Name = type.Name+"."+method.Name;
            Game=game;
            Sw = new Stopwatch();
            Sw.Start();
        }