public void Start() { if (IsHighResolution) { if (Kernel32.QueryPerformanceCounter(out _startTime) == false) throw new AegisException(AegisResult.UnknownError, "QueryPerformanceCounter error."); } else _startTime = System.Environment.TickCount; }
public static HighResolutionTimer StartNew() { HighResolutionTimer item = new HighResolutionTimer(); item.Start(); return(item); }