public class Time extends Object
Time abstracts time in the Java Media framework.| Modifier and Type | Field and Description |
|---|---|
protected long |
nanoseconds
Time is kept to a granularity of nanoseconds.
|
static long |
ONE_SECOND |
| Constructor and Description |
|---|
Time(double seconds)
Construct a time in seconds.
|
Time(long nano)
Construct a time in nanoseconds.
|
| Modifier and Type | Method and Description |
|---|---|
long |
getNanoseconds()
Get the time value in nanoseconds.
|
double |
getSeconds()
Get the time value in seconds.
|
protected long |
secondsToNanoseconds(double seconds)
Convert seconds to nanoseconds.
|
public static final long ONE_SECOND
protected long nanoseconds
Copyright © 2012 code4tv.com. All Rights Reserved.