org.jagatoo.util.timing
Interface TimerInterface

All Known Implementing Classes:
JavaTimer

public interface TimerInterface

Timer interface. There is no standard Java timer and because to implement a timer for each platform requires compiled object code.


Method Summary
 long getMicroseconds()
           
 long getMilliseconds()
           
 long getNanoseconds()
           
 long getResolution()
           
 long getTime()
           
 

Method Detail

getResolution

long getResolution()
Returns:
number of ticks per second that this timer generates

getTime

long getTime()
Returns:
timer tick value. Divide by getResolution to get second, or divide by getResolution()*1000 to get milli seconds, 1000000 to get microseconds

getMilliseconds

long getMilliseconds()
Returns:
the current milliseconds value

getMicroseconds

long getMicroseconds()
Returns:
the current microseconds value

getNanoseconds

long getNanoseconds()
Returns:
the current nanoseconds value