|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.iphrase.runtime.Timer
Timing utilities for measuring runtime performance.
Inner Class Summary | |
static class |
Timer.Deserializer
Thin wrapper around org.apache.axis.encoding.ser.BeanDeserializer that calls elapsed(long, java.lang.String) for the element deserialization operation. |
Constructor Summary | |
Timer()
|
Method Summary | |
static void |
elapsed(long t0,
java.lang.String op)
Print elapsed time since t0 as well as other timing statistics along with the thread name setUniqueThreadName() , passed op, and additional adornments. |
static long |
now()
Get the time right now. |
static void |
setUniqueThreadName()
Set a unique per-thread name for use in subsequent calls to elapsed(long, java.lang.String) . |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Timer()
Method Detail |
public static void setUniqueThreadName()
elapsed(long, java.lang.String)
.public static long now()
public static void elapsed(long t0, java.lang.String op)
setUniqueThreadName()
, passed op, and additional adornments.t0
- an earlier time in ms, typically obtained via a call to
now()
before the operation being timedop
- an operation name that distinguishes this call from others
|
© Copyright 2005, 2006. IBM Corporation. All rights reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |