Example #1
0
        /// <summary>
        /// Creates a new PhysicsTimer from a certain amount of time, starts it, and returns the current instance
        /// </summary>
        /// <param name="seconds">Time to start the watch at, in seconds</param>
        public new static PhysicsTimer StartNewFromTime(float seconds)
        {
            PhysicsTimer timer = new PhysicsTimer(seconds);

            timer.Start();
            return(timer);
        }
Example #2
0
        /// <summary>
        /// Creates a new PhysicsTimer, starts it, and returns the current instance
        /// </summary>
        public new static PhysicsTimer StartNew()
        {
            PhysicsTimer timer = new PhysicsTimer();

            timer.Start();
            return(timer);
        }