This is the JMF 1.0 Time interface.
Constructs a Time using nanoseconds.paramnano Number of nanoseconds for this time. this.nanoseconds = nanoseconds;
this.nanoseconds = nanoseconds;
Constructs a Time using seconds.paramseconds Time specified in seconds. nanoseconds = secondsToNanoseconds(seconds);
nanoseconds = secondsToNanoseconds(seconds);
Gets the time value in nanoseconds.returntime value in nanoseconds. return nanoseconds;
return nanoseconds;
Gets the time value in seconds.returntime value in seconds. return nanoseconds * NANO_TO_SEC;
return nanoseconds * NANO_TO_SEC;
Converts seconds to nanoseconds. return (long)(seconds * ONE_SECOND);
return (long)(seconds * ONE_SECOND);