Package org.deepjava.runtime.mpc555
Class Timer
- java.lang.Object
- 
- org.deepjava.runtime.mpc555.Timer
 
- 
 public class Timer extends Object A class to measure a time span. The resolution will be in ms.- Author:
- 18.12.2009 simon.pertschy@ntb.ch
 
- 
- 
Constructor SummaryConstructors Constructor Description Timer()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanexpired()Returnstrueif the time is expired.voidreset()Reset the timer.voidset(int ms)Set the time to measure.voidstop()Stop the timer.
 
- 
- 
- 
Method Detail- 
setpublic void set(int ms) Set the time to measure.- Parameters:
- ms- the time in milliseconds
 
 - 
resetpublic void reset() Reset the timer. This call only works if the timer has not been expired.
 - 
stoppublic void stop() Stop the timer.
 - 
expiredpublic boolean expired() Returnstrueif the time is expired.falseotherwise.- Returns:
- trueif the time is expired.
 
 
- 
 
-