コード例 #1
0
ファイル: Profiler.cs プロジェクト: Terminologies/MoreTerra
		public Int32 Start(String pName, String useNote = null)
		{
			pTimeSpan pts = new pTimeSpan(DateTime.Now, useNote);

			openIDs.Add(currentID, pName);

			if (profileList.ContainsKey(pName) == false)
				profileList[pName] = new Dictionary<Int32, pTimeSpan>();

			profileList[pName].Add(currentID, pts);

			return ++currentID;
		}
コード例 #2
0
        public Int32 Start(String pName, String useNote = null)
        {
            pTimeSpan pts = new pTimeSpan(DateTime.Now, useNote);

            openIDs.Add(currentID, pName);

            if (profileList.ContainsKey(pName) == false)
            {
                profileList[pName] = new Dictionary <Int32, pTimeSpan>();
            }

            profileList[pName].Add(currentID, pts);

            return(++currentID);
        }