All Packages Class Hierarchy This Package Previous Next Index
Class javax.media.Time
java.lang.Object
|
+----javax.media.Time
- public class Time
- extends Object
Time
abstracts time in the Java Media framework.
- Version:
- 1.10, 97/08/28.
- See Also:
- Clock, TimeBase
-
nanoseconds
- Time is kept to a granularity of nanoseconds.
-
ONE_SECOND
-
-
Time(double)
- Construct a time in seconds.
-
Time(long)
- Construct a time in nanoseconds.
-
getNanoseconds()
- Get the time value in nanoseconds.
-
getSeconds()
- Get the time value in seconds.
-
secondsToNanoseconds(double)
- Convert seconds to nanoseconds.
ONE_SECOND
public static final long ONE_SECOND
nanoseconds
protected long nanoseconds
- Time is kept to a granularity of nanoseconds.
Converions to and from this value are done
to implement construction or query in seconds.
Time
public Time(long nano)
- Construct a time in nanoseconds.
- Parameters:
- nano - Number of nanoseconds for this time.
Time
public Time(double seconds)
- Construct a time in seconds.
- Parameters:
- seconds - Time specified in seconds.
secondsToNanoseconds
protected long secondsToNanoseconds(double seconds)
- Convert seconds to nanoseconds.
getNanoseconds
public long getNanoseconds()
- Get the time value in nanoseconds.
- Returns:
- The time in nanoseconds.
getSeconds
public double getSeconds()
- Get the time value in seconds.
All Packages Class Hierarchy This Package Previous Next Index