Package com.gentlyweb.utils
Class Timings
- java.lang.Object
-
- com.gentlyweb.utils.Timings
-
public class Timings extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static int
KEY_ORDERED
static int
RANDOM
static int
TIME_ORDERED
-
Constructor Summary
Constructors Constructor Description Timings(int type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Timing
get(Object k)
TimeDuration
getDuration(Object k)
long
getDurationAsLong(Object k)
Iterator
iterator()
Timing
remove(Object k)
void
start(Object k)
void
start(Object k, long s)
void
start(Object k, Date s)
void
stop(Object k)
void
stop(Object k, long d)
void
stop(Object k, Date d)
-
-
-
Field Detail
-
TIME_ORDERED
public static final int TIME_ORDERED
- See Also:
- Constant Field Values
-
RANDOM
public static final int RANDOM
- See Also:
- Constant Field Values
-
KEY_ORDERED
public static final int KEY_ORDERED
- See Also:
- Constant Field Values
-
-
Method Detail
-
iterator
public Iterator iterator()
-
stop
public void stop(Object k, long d)
-
stop
public void stop(Object k)
-
start
public void start(Object k)
-
start
public void start(Object k, long s)
-
getDuration
public TimeDuration getDuration(Object k)
-
getDurationAsLong
public long getDurationAsLong(Object k)
-
-