Modifier and Type | Field and Description |
---|---|
static BulkTimer |
LOAD
A BulkTimer that can be used by classes that need to
time their loading phase.
|
private static String |
SELF |
private Map<String,Timer> |
timers |
private boolean |
verbose |
Constructor and Description |
---|
BulkTimer()
Creates a bulk timer.
|
Modifier and Type | Method and Description |
---|---|
Timer |
getTimer(String name)
Gets the timer with the given name.
|
boolean |
isVerbose()
Checks to see if we are in verbose mode.
|
void |
setVerbose(boolean verbose)
Sets verbose mode.
|
void |
show(String title)
Shows all of the collected times.
|
void |
start()
Starts the bulk timer.
|
void |
start(String name)
Starts the timer with the given name.
|
void |
stop()
Stops the bulk timer.
|
void |
stop(String name)
Stops the timer with the given name.
|
public static final BulkTimer LOAD
private static final String SELF
private boolean verbose
public BulkTimer()
public void start(String name)
name
- the name of the timer to startpublic void stop(String name)
name
- the name of the timerpublic void start()
start
and end
calls on the
BulkTimer
.public void stop()
public void setVerbose(boolean verbose)
verbose
- the verbose modepublic boolean isVerbose()
true
if verbose mode; otherwise
false
.public Timer getTimer(String name)
name
- the timer nameWebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses