public class Profiler
extends java.lang.Object
Constructor and Description |
---|
Profiler() |
Modifier and Type | Method and Description |
---|---|
static long |
end(java.lang.String name)
Stop the stopwatch
|
static java.lang.String |
endHR(java.lang.String name)
Format the time in more readable format
|
static void |
start(java.lang.String name)
Start the stopwatch
|
public static void start(java.lang.String name)
name
- Unique name for time measurepublic static long end(java.lang.String name)
name
- Unique name for time measure (use the same as in start)public static java.lang.String endHR(java.lang.String name)
name
- Unique name for time measure (use the same as in start)