public class TimeValue
extends java.lang.Object
Constructor and Description |
---|
TimeValue()
Default constructor
|
TimeValue(double timeval) |
TimeValue(long system)
Constructor
|
TimeValue(long sec,
long usec)
Constructor
|
TimeValue(TimeValue tm)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
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
|
public TimeValue()
public TimeValue(long sec, long usec)
sec
-
Secondusec
-
Micro secondpublic TimeValue(long system)
system
-
System Timepublic TimeValue(double timeval)
timeval
-
Set valuepublic TimeValue(TimeValue tm)
tm
-
Copy originpublic long getSec()
public long getUsec()
public TimeValue minus(TimeValue tm)
tm
-
Subtacted timepublic TimeValue plus(TimeValue tm)
tm
-
Added timepublic TimeValue convert(double time)
time
-
Numerical value of conversion originpublic double toDouble()
public long sec()
public long usec()
public int sign()