|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjp.go.aist.rtm.RTC.util.TimeValue
public class TimeValue
Class that expresses time
Constructor Summary | |
---|---|
TimeValue()
Default constructor |
|
TimeValue(double timeval)
|
|
TimeValue(long sec,
long usec)
Constructor |
|
TimeValue(TimeValue tm)
Copy constructor |
Method Summary | |
---|---|
TimeValue |
convert(double time)
Converts the numerical itno time |
long |
getSec()
Gets the set time (second). |
long |
getUsec()
Gets the set time (micro second). |
TimeValue |
minus(TimeValue tm)
Subtracts time. |
TimeValue |
plus(TimeValue tm)
Adds time. |
long |
sec()
Gets sec return sec |
int |
sign()
Judges the sign of the maintained content |
double |
toDouble()
Converts time into the numerical |
long |
usec()
Gets usec return usec |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TimeValue()
public TimeValue(long sec, long usec)
sec
-
Secondusec
-
Micro secondpublic TimeValue(double timeval)
timeval
-
Set valuepublic TimeValue(TimeValue tm)
tm
-
Copy originMethod Detail |
---|
public long getSec()
public long getUsec()
public TimeValue minus(TimeValue tm)
tm
-
Subtacted time
public TimeValue plus(TimeValue tm)
tm
-
Added time
public TimeValue convert(double time)
time
-
Numerical value of conversion origin
public double toDouble()
public long sec()
public long usec()
public int sign()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |