ZForge.Controls.TreeViewAdv.TimeCounter.GetStartValue C# (CSharp) Method

GetStartValue() public static method

public static GetStartValue ( ) : System.Int64
return System.Int64
        public static Int64 GetStartValue()
        {
            Int64 t = 0;
            QueryPerformanceCounter(ref t);
            return t;
        }

Usage Example

示例#1
0
        public static void Start(string pieceOfCode)
        {
            PerformanceInfo info = null;

            lock (_performances)
            {
                if (_performances.ContainsKey(pieceOfCode))
                {
                    info = _performances[pieceOfCode];
                }
                else
                {
                    info = new PerformanceInfo(pieceOfCode);
                    _performances.Add(pieceOfCode, info);
                }

                info.Count++;
                info.Start = TimeCounter.GetStartValue();
            }
        }