|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthultig.util.CronoSensor
public class CronoSensor
A time sensor for counting execution times
Copyright: Copyright (c) 2006
Company: UBI - HULTIG
| Field Summary | |
|---|---|
static byte |
DAYS
Define the type "day" |
static byte |
HOURS
Define the type "hour" |
static byte |
MINUTES
Define the type "minutes" |
static byte |
MSECONDS
Define the type "milliseconds". |
static byte |
SECONDS
Define the type "seconds" |
| Constructor Summary | |
|---|---|
CronoSensor()
Create current object and set time zero - start time |
|
| Method Summary | |
|---|---|
long |
dt()
Get the elapsed time since the chronometer was set to time zero. |
double |
dt(byte type)
Get the elapsed time since the chronometer was set to time zero. |
String |
dts()
The time in a string format |
static String |
nowStamp()
Return a string with the current date-time stamp, for example: 20100320171545. |
void |
set()
Reset the chronometer to time zero for subsequente time measuring. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static byte MSECONDS
public static byte SECONDS
public static byte MINUTES
public static byte HOURS
public static byte DAYS
| Constructor Detail |
|---|
public CronoSensor()
| Method Detail |
|---|
public void set()
public long dt()
public double dt(byte type)
type - One of the types defined previously: SECONDS, MINUTES, etc.
public String dts()
public static String nowStamp()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||