javax.media
Class Time
java.lang.Object
|
+--javax.media.Time
- public class Time
- extends java.lang.Object
- implements java.io.Serializable
Time is kept at nanosecond precision.
This is the JMF 1.0
Time
interface.
- See Also:
- Serialized Form
Constructor Summary |
Time(double seconds)
Constructs a Time using seconds. |
Time(long nanoseconds)
Constructs a Time using nanoseconds. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
ONE_SECOND
public static final long ONE_SECOND
TIME_UNKNOWN
public static final Time TIME_UNKNOWN
nanoseconds
protected long nanoseconds
- Time in nanoseconds.
Time
public Time(long nanoseconds)
- Constructs a Time using nanoseconds.
- Parameters:
nano
- Number of nanoseconds for this time.
Time
public Time(double seconds)
- Constructs a Time using seconds.
- Parameters:
seconds
- Time specified in seconds.
secondsToNanoseconds
protected long secondsToNanoseconds(double seconds)
- Converts seconds to nanoseconds.
getNanoseconds
public long getNanoseconds()
- Gets the time value in nanoseconds.
- Returns:
- time value in nanoseconds.
getSeconds
public double getSeconds()
- Gets the time value in seconds.
- Returns:
- time value in seconds.
Submit a bug or feature
Copyright 1994-2004 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A. All Rights Reserved. See the Specification License for more details.
Sun, Sun Microsystems, and Java are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.