org.salespointframework.core.data.database
Class PersistenceManager.PerformanceTimer

java.lang.Object
  extended by org.salespointframework.core.data.database.PersistenceManager.PerformanceTimer
Enclosing class:
PersistenceManager

public static class PersistenceManager.PerformanceTimer
extends java.lang.Object

Simple Performance timer with nano seconds precision

Since:
4.0
Author:
Thomas Kissinger

Constructor Summary
PersistenceManager.PerformanceTimer()
          Constructor with auto-start
 
Method Summary
 long getTime()
          returns hopefully the time difference if stop() was called once before
 void stop()
          stop timer an write difference to start
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PersistenceManager.PerformanceTimer

public PersistenceManager.PerformanceTimer()
Constructor with auto-start

Method Detail

stop

public void stop()
stop timer an write difference to start


getTime

public long getTime()
returns hopefully the time difference if stop() was called once before

Returns: