Argentini.Halide.H3StopWatch.GetTime C# (CSharp) Метод

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

Returns a string containing the elasped time since the Start of the H3StopWatch.

(If Called after the Stop Method) Returns a string containing the elasped time between the Start of the H3StopWatch and the Stop of the H3StopWatch

public GetTime ( ) : string
Результат string
        public string GetTime()
        {
            int CurrentTime;
            float Elasped;

            CurrentTime =
                DateTime.Now.Hour * 60 * 60 * 1000 +
                DateTime.Now.Minute * 60 * 1000 +
                DateTime.Now.Second * 1000 +
                DateTime.Now.Millisecond;

            if (StopTime == 0)
                Elasped = (CurrentTime - StartTime) / (float)1000;
            else
                Elasped = (StopTime - StartTime) / (float)1000;
            return Elasped.ToString();
        }