HOME | PROJECTS | REALITY | EMAIL

Class ReOSIntervalTimer

java.lang.Object
  |
  +--ReOSTimer
        |
        +--ReOSIntervalTimer

public class ReOSIntervalTimer
extends ReOSTimer

Name: class ReOSIntervalTimer Desc: ha

Version:
1.000 - 1997, 1998, 2000 1.19.2000 Gary - created and implemented
Author:
Ge (Gary) Wang (www.gewang.com), George Stetten (stetten@duke.edu), Visnu Pitiyanuvath (vtp1@duke.edu)

Constructor Summary
ReOSIntervalTimer()
          constructor
 
Method Summary
 long end()
          ends the timer (interval)
 long getIntervalDifference()
          get the difference between interval and start-end
 long getIntervalLength()
          get the length of the interval
 void setIntervalLength(long interval)
          sets the length of the interval
 long start()
          starts the timer (interval)
 
Methods inherited from class ReOSTimer
getEndTime, getIsRunning, getStartTime, reset, sleep
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReOSIntervalTimer

public ReOSIntervalTimer()
constructor
Method Detail

setIntervalLength

public void setIntervalLength(long interval)
sets the length of the interval
Parameters:
interval - the ms interval

getIntervalLength

public long getIntervalLength()
get the length of the interval
Returns:
the length of interval

start

public long start()
starts the timer (interval)
Returns:
the starting timer in ms.
Overrides:
start in class ReOSTimer

end

public long end()
ends the timer (interval)
Parameters:
none -  
Returns:
the ending time
Overrides:
end in class ReOSTimer

getIntervalDifference

public long getIntervalDifference()
get the difference between interval and start-end
Returns:
interval - (end - start)


HOME | PROJECTS | REALITY | EMAIL