Documentation of 'Catalano.Core.Stopwatch' Java class
Stopwatch
Catalano.Core

Class Stopwatch



  • public class Stopwatch
    extends java.lang.Object
    Provides a set of methods and properties that you can use to accurately measure elapsed time.
    • Constructor Summary

      Constructors 
      Constructor and Description
      Stopwatch()
      Initializes a new instance of the Stopwatch class.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.lang.Long ElapsedMilliseconds()
      Gets the total elapsed time measured by the current instance, in milliseconds.
      boolean isRunning()
      Gets a value indicating whether the timer is running.
      void Reset()
      Stops time interval measurement and resets the elapsed time to zero.
      void Restart()
      Stops time interval measurement, resets the elapsed time to zero, and starts meansuring elapsed time.
      void Start()
      Start meansuring elapsed time for an interval.
      void Stop()
      Stops measuring elapsed time for an inverval.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Stopwatch

        public Stopwatch()
        Initializes a new instance of the Stopwatch class.
    • Method Detail

      • Start

        public void Start()
        Start meansuring elapsed time for an interval.
      • Stop

        public void Stop()
        Stops measuring elapsed time for an inverval.
      • Reset

        public void Reset()
        Stops time interval measurement and resets the elapsed time to zero.
      • Restart

        public void Restart()
        Stops time interval measurement, resets the elapsed time to zero, and starts meansuring elapsed time.
      • ElapsedMilliseconds

        public java.lang.Long ElapsedMilliseconds()
        Gets the total elapsed time measured by the current instance, in milliseconds.
        Returns:
        Milliseconds.
      • isRunning

        public boolean isRunning()
        Gets a value indicating whether the timer is running.
        Returns:
        Status.

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.