Exemple #1
0
		public static TimerProfile Acquire(string name) {
			if (BaseProfile.Profiling == false) {
				return null;
			}

			TimerProfile prof;
			if (mProfiles.TryGetValue(name, out prof) == false) {
				mProfiles.Add(name, prof = new TimerProfile(name));
			}

			return prof;
		}
        public static TimerProfile Acquire(string name)
        {
            if (BaseProfile.Profiling == false)
            {
                return(null);
            }

            TimerProfile prof;

            if (mProfiles.TryGetValue(name, out prof) == false)
            {
                mProfiles.Add(name, prof = new TimerProfile(name));
            }

            return(prof);
        }