rlaramee
Class ProcessTimer
java.lang.Object
|
+--rlaramee.ProcessTimer
- public class ProcessTimer
- extends java.lang.Object
Description: This class is responsible for all of the timing
functions needed for the program.
start date Wed 15 Nov 2000
- Version:
- 1.0
- Author:
- Robert S Laramee
- See Also:
Display.java
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
beginMinute
private int beginMinute
endMinute
private int endMinute
beginSecond
private float beginSecond
endSecond
private float endSecond
timer
private java.util.Calendar timer
ProcessTimer
public ProcessTimer()
- constructor
getTimer
private java.util.Calendar getTimer()
- Returns:
- the Calendar timer object
setTimer
private boolean setTimer(java.util.Calendar calendar)
- Parameters:
a
- new BinaryCubeReader's timer object- Returns:
- TRUE if the set was successful
getBeginSecond
private float getBeginSecond()
- Returns:
- the second when the timer started
setBeginSecond
private void setBeginSecond(float minute,
float second,
float millisecond)
- Parameters:
the
- second when the timer started
getEndSecond
private float getEndSecond()
- Returns:
- the second when the timer ended
setEndSecond
private void setEndSecond(float minute,
float second,
float millisecond)
- Parameters:
the
- second when the timer ended
beginTimer
public boolean beginTimer()
- Starts the timer running
- Returns:
- TRUE if it's started
endTimer
public boolean endTimer()
- Ends the timer
- Returns:
- TRUE if it's ended
computeTotalTime
private boolean computeTotalTime()
- Returns:
- TRUE if the total time was computed