Thread.State, Thread.UncaughtExceptionHandler
Modifier and Type | Field and Description |
---|---|
protected double |
done
Number of items in task completed
|
protected short |
lastPercentage
the last percentage that was output.
|
protected String |
message
the message that should be output with the progress
|
protected long |
startingTime
The starting system time in millisecond.
|
protected double |
total
The total number of items to process in a task.
|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
Constructor and Description |
---|
TerrierTimer() |
TerrierTimer(String message,
double total) |
Modifier and Type | Method and Description |
---|---|
String |
elapsed()
Get a string summarising the processing/remaining time in minutes and seconds.
|
void |
finished() |
short |
getPercentage() |
String |
getRemainingTime() |
void |
increment() |
void |
increment(double dIncrememt) |
static String |
longToText(long timems) |
void |
run() |
void |
setDone(double done) |
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
protected final long startingTime
protected final double total
protected volatile double done
protected short lastPercentage
protected final String message
public TerrierTimer()
public TerrierTimer(String message, double total)
public void setDone(double done)
public short getPercentage()
public void increment()
public void increment(double dIncrememt)
public void finished()
public String getRemainingTime()
public String elapsed()
public static String longToText(long timems)
Terrier 4.0. Copyright © 2004-2014 University of Glasgow