コード例 #1
0
ファイル: TimerProfile.cs プロジェクト: GodLesZ/svn-dump
		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;
		}
コード例 #2
0
ファイル: Timer.cs プロジェクト: hakanaku2009/svn-dump
        public void Stop()
        {
            if (!mRunning)
            {
                return;
            }
            mRunning = false;
            TimerThread.RemoveTimer(this);

            TimerProfile prof = GetProfile();

            if (prof != null)
            {
                prof.Stopped++;
            }
        }
コード例 #3
0
ファイル: TimerProfile.cs プロジェクト: hakanaku2009/svn-dump
        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);
        }
コード例 #4
0
ファイル: Timer.cs プロジェクト: hakanaku2009/svn-dump
        public void Start()
        {
            if (mRunning)
            {
                return;
            }

            mRunning = true;
            TimerThread.AddTimer(this);

            TimerProfile prof = GetProfile();

            if (prof != null)
            {
                prof.Started++;
            }
        }