etm.core.timer
Interface ExecutionTimer

All Known Implementing Classes:
DefaultTimer, Java15NanoTimer, SunHighResTimer

public interface ExecutionTimer

Base interface for measurement timers. Implementations need to provide a public empty default constructor.

Version:
$Revision: 35 $
Author:
void.fm

Method Summary
 long getCurrentTime()
          Returns the current timestamp.
 TimerMetaData getMetaData()
          Returns the timer metadata.
 long getTicksPerSecond()
          Returns the ticks per second which differ between timer implementations.
 

Method Detail

getCurrentTime

long getCurrentTime()
Returns the current timestamp. In combination with getTicksPerSecond() the time in seconds can be calculated.

Returns:
The timestamp.

getTicksPerSecond

long getTicksPerSecond()
Returns the ticks per second which differ between timer implementations.

Returns:
The ticks per second

getMetaData

TimerMetaData getMetaData()
Returns the timer metadata.

Returns:
The timer metadata.


Copyright © 2004,2005, 2006, 2007 void.fm. All Rights Reserved.