Aegis.Calculate.HighResolutionTimer.Start C# (CSharp) Метод

Start() публичный Метод

public Start ( ) : void
Результат void
        public void Start()
        {
            if (IsHighResolution)
            {
                if (Kernel32.QueryPerformanceCounter(out _startTime) == false)
                    throw new AegisException(AegisResult.UnknownError, "QueryPerformanceCounter error.");
            }
            else
                _startTime = System.Environment.TickCount;
        }

Usage Example

Пример #1
0
        public static HighResolutionTimer StartNew()
        {
            HighResolutionTimer item = new HighResolutionTimer();

            item.Start();

            return(item);
        }
All Usage Examples Of Aegis.Calculate.HighResolutionTimer::Start