hyades.utils.Timer.Timer C# (CSharp) Method

Timer() public method

Creates a new Timer.
public Timer ( float length, bool repeats, Action tick ) : System
length float The length of time between ticks.
repeats bool Whether or not the timer repeats.
tick Action The delegate to invoke when the timer ticks.
return System
        public Timer(float length, bool repeats, Action<Timer> tick)
        {
            if (length <= 0f)
                throw new ArgumentException("length must be greater than 0");
            if (tick == null)
                throw new ArgumentNullException("tick");

            Reset(length, repeats, tick);
        }

Same methods

Timer::Timer ( ) : System