uk.nominet.catnap.profile
Class CatnapTimingCallback

java.lang.Object
  extended byuk.nominet.catnap.profile.CatnapTimingCallback

public abstract class CatnapTimingCallback
extends java.lang.Object

Timer callback, permits an arbitrary block of code to be timed. The execute method returns the time taken to execute the code.


Constructor Summary
CatnapTimingCallback()
           
 
Method Summary
abstract  void doTimedBlock()
          Callback method containing block to be timed.
 long execute()
          Execute the callback, returning the time taken to execute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CatnapTimingCallback

public CatnapTimingCallback()
Method Detail

doTimedBlock

public abstract void doTimedBlock()
Callback method containing block to be timed.


execute

public long execute()
Execute the callback, returning the time taken to execute

Returns:
long