public static GetStartValue ( ) : System.Int64 | ||
return | System.Int64 |
public static Int64 GetStartValue()
{
Int64 t = 0;
QueryPerformanceCounter(ref t);
return t;
}
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(); } }