|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.kuka.common.TimeStamp
public class TimeStamp
Timestamp Support Class for interaction to Realtimesystem. Timestamps, beeing computed/sent by realtimesystem can be converted to java time. ACHTUNG: 2038 wird diese Technik überfliessen, da der integer (int32) zu dieser Zeit negativ wird.
| Constructor Summary | |
|---|---|
TimeStamp(int[] timestamp)
Initialisierung des Timestamps im Unix/C Tupel (sys/time.h). |
|
TimeStamp(long timestampSec,
int timestampNanoSec)
Initialisierung des Timestamps im Unix/C Tupel (sys/time.h). |
|
| Method Summary | |
|---|---|
long |
toMillis()
Erzeugt Millisekundendarstellung wie sie für Java System.currentTimeInMillis() kompatibel ist. |
static long |
toMillis(int[] timestampAsIntArray)
Konvertiert eine Timestamp array nach Millisekunden. |
static long |
toMillis(long timestampSec,
int timestampNsec)
Wandelt die Eingangsparameter in Millisekunden um. |
long |
toNanos()
Wandelt den Timestamp in NanoSekunden um... |
static long |
toNanos(long timestampSec,
int timestampNanoSec)
converts a timestamp (e.g. from realtime system) to time in nanoseconds. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TimeStamp(long timestampSec,
int timestampNanoSec)
timestampSec - Zeit in Sekunden seit 1.1.1970.timestampNanoSec - NanoSekunden innerhalb og. Sekunde.public TimeStamp(int[] timestamp)
timestamp - Dimension 2 - timestamp[0] - Zeit in Sekunden seit 1.1.1970 timestamp[1] - NanoSekunden innerhalb og
Sekunde| Method Detail |
|---|
public long toMillis()
See the description of the class Date for a discussion of slight discrepancies that may arise
between "computer time" and coordinated universal time (UTC).
Datepublic long toNanos()
System.nanoTime
public static long toMillis(long timestampSec,
int timestampNsec)
timestampSec - - Zeit in SekundentimestampNsec - - Unterzeit in Nanosekunden
public static long toMillis(int[] timestampAsIntArray)
timestampAsIntArray - [0] Sekunden, [1] nanoSekunden
public static long toNanos(long timestampSec,
int timestampNanoSec)
timestampSec - - base e.g. in os_clock_read()timestampNanoSec - - base e.g. in os_clock_read()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||