public final class ClockTime extends Object
Modifier and Type | Method and Description |
---|---|
static long |
fromMicros(long microseconds)
Convert time in microseconds to GStreamer clocktime (nanoseconds)
|
static long |
fromMillis(long milliseconds)
Convert time in milliseconds to GStreamer clocktime (nanoseconds)
|
static long |
fromSeconds(long seconds)
Convert time in milliseconds to GStreamer clocktime (nanoseconds)
|
static long |
getHoursComponent(long clocktime)
Get the hours component of the total time.
|
static long |
getMinutesComponent(long clocktime)
Get the minutes component of the total time.
|
static long |
getSecondsComponent(long clocktime)
Get the seconds component of the total time.
|
static boolean |
isValid(long clocktime)
Determines if this ClockTime represents a valid time value.
|
static long |
toMicros(long clocktime)
Convert GStreamer clocktime (nanoseconds) to microseconds.
|
static long |
toMillis(long clocktime)
Convert GStreamer clocktime (nanoseconds) to milliseconds.
|
static long |
toSeconds(long clocktime)
Convert GStreamer clocktime (nanoseconds) to seconds.
|
static String |
toString(long clocktime)
Returns a
String representation of this ClockTime . |
public static final long NONE
public static final long ZERO
public static long fromMicros(long microseconds)
microseconds
- the microsecond value to represent.public static long toMicros(long clocktime)
clocktime
- nanosecond timepublic static long fromMillis(long milliseconds)
milliseconds
- the millisecond value to represent.public static long toMillis(long clocktime)
clocktime
- nanosecond timepublic static long fromSeconds(long seconds)
seconds
- the seconds value to represent.public static long toSeconds(long clocktime)
clocktime
- nanosecond timepublic static long getHoursComponent(long clocktime)
clocktime
- GStreamer time in nanosecondspublic static long getMinutesComponent(long clocktime)
clocktime
- GStreamer time in nanosecondspublic static long getSecondsComponent(long clocktime)
clocktime
- GStreamer time in nanosecondspublic static boolean isValid(long clocktime)
clocktime
- GStreamer time in nanosecondspublic static String toString(long clocktime)
String
representation of this ClockTime
.clocktime
- GStreamer time in nanosecondsClockTime
Copyright © 2019 gstreamer-java. All rights reserved.