Esempio n. 1
0
        /// <summary>
        /// Creates a new PhysicsWatch 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 static PhysicsWatch StartNewFromTime(double seconds)
        {
            PhysicsWatch watch = new PhysicsWatch(seconds);

            watch.Start();
            return(watch);
        }
Esempio n. 2
0
        /// <summary>
        /// Creates a new PhysicsWatch, starts it, and returns the current instance
        /// </summary>
        public static PhysicsWatch StartNew()
        {
            PhysicsWatch watch = new PhysicsWatch();

            watch.Start();
            return(watch);
        }
Esempio n. 3
0
 /// <summary>
 /// Creates a new PhysicsWatch 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 static PhysicsWatch StartNewFromTime(double seconds)
 {
     PhysicsWatch watch = new PhysicsWatch(seconds);
     watch.Start();
     return watch;
 }
Esempio n. 4
0
 /// <summary>
 /// Creates a new PhysicsWatch, starts it, and returns the current instance
 /// </summary>
 public static PhysicsWatch StartNew()
 {
     PhysicsWatch watch = new PhysicsWatch();
     watch.Start();
     return watch;
 }