facets.util
Class Times

java.lang.Object
  extended by facets.util.Times

public final class Times
extends java.lang.Object

Simple timing for profiling and latency checks.


Field Summary
static boolean nanoTime
           
static long resetWait
           
static boolean times
           
 
Constructor Summary
Times()
           
 
Method Summary
static long elapsed()
          The time since the last auto-reset.
static void printElapsed(java.lang.String msg)
          Print elapsed() followed by the message.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

times

public static boolean times

nanoTime

public static boolean nanoTime

resetWait

public static long resetWait
Constructor Detail

Times

public Times()
Method Detail

elapsed

public static long elapsed()
The time since the last auto-reset.

Interval for reset set by resetWait.


printElapsed

public static void printElapsed(java.lang.String msg)
Print elapsed() followed by the message.