Package com.molecular_java
Class MyWatches
java.lang.Object
com.molecular_java.MyWatches
A class for time meassurement.
It has methods for start and stop of the time
period.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
timeElapsed
public double timeElapsedElapsed time in millis (count in theend()) method.
-
-
Constructor Details
-
MyWatches
public MyWatches()
-
-
Method Details
-
start
public void start()On start, the method notes the current time for further counting. -
end
public void end()The method notes the current time as the end time and sets the elapsed time as a difference of end and start time.
-