public class UtilTimer extends Object
| Constructor and Description |
|---|
UtilTimer()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
getLog()
Gets the value of the log member, denoting whether log output is off or not
|
double |
secondsSinceLast()
Returns the number of seconds since the last time timerString was called
|
double |
secondsSinceStart()
Returns the number of seconds since the timer started
|
void |
setLog(boolean log)
Sets the value of the log member, denoting whether log output is off or not
|
String |
timerString(int level,
String message)
Creates a string with information including the passed message, the time since the last call,
and the time since the beginning.
|
String |
timerString(String message)
Creates a string with information including the passed message, the last passed message and the time since the last call, and the time since the beginning
|
String |
timerString(String message,
String module)
Creates a string with information including the passed message, the last passed message and the time since the last call, and the time since the beginning
|
long |
timeSinceLast()
Returns the number of milliseconds since the last time timerString was called
|
long |
timeSinceStart()
Returns the number of milliseconds since the timer started
|
public String timerString(String message)
message - A message to put into the timer Stringpublic String timerString(String message, String module)
message - A message to put into the timer Stringmodule - The debug/log module/thread to use, can be null for root modulepublic double secondsSinceStart()
public double secondsSinceLast()
public long timeSinceStart()
public long timeSinceLast()
public void setLog(boolean log)
log - The new value of logpublic boolean getLog()
public String timerString(int level, String message)
level - Integer specifying how many levels to indent the timer string so the output can be more easily read through nested method calls.message - A message to put into the timer StringCopyright © 2018 Atlassian. All rights reserved.