public class Timeshort
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private long |
absTime
Any absolute timestamp to the
absTime_short . |
private float |
absTime_Millisec7short
Milliseconds for 1 step of shorttime.
|
private int |
absTime_short
The shorttime-stamp to the
absTime timestamp. |
static int |
version
Version, history and license.
|
Modifier and Type | Method and Description |
---|---|
long |
absTimeshort(int timeshort)
Returns the absolute time in milliseconds after 1970 to a given timeshort.
|
void |
clean() |
boolean |
isCleaned() |
float |
millisec7short()
Returns the factor between milliseconds / shorttime_difference
|
float |
millisecShort(int timeshort)
Returns the milliseconds after the last
setTimePoint(long, int, float) according to the given timeshort. |
void |
setTimePoint(long date,
int timeshort,
float millisecPerTimeshort) |
static boolean |
sleep(long millisec)
Universal wait routine without necessity of a try-catch wrapping.
|
int |
timeshort4abstime(long date)
Returns the timeshort steps to the given date according to the last
setTimePoint(long, int, float) . |
public static final int version
clean()
and isCleaned()
to set a new pair of absTime_short and absTime.
sleep(long)
as wrapper around Thread.sleep() without Exception.
private int absTime_short
absTime
timestamp. Set with GralCurveView#setTimePoint(long, int, float)
.private long absTime
absTime_short
. Set with GralCurveView#setTimePoint(long, int, float)
.private float absTime_Millisec7short
public Timeshort()
public Timeshort(Timeshort src)
public long absTimeshort(int timeshort)
public void setTimePoint(long date, int timeshort, float millisecPerTimeshort)
public void clean()
public boolean isCleaned()
public float millisec7short()
public float millisecShort(int timeshort)
setTimePoint(long, int, float)
according to the given timeshort.public int timeshort4abstime(long date)
setTimePoint(long, int, float)
.date
- The current date, it should be later than the date on the setTimePoint(...)public static boolean sleep(long millisec)
millisec
-