|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.ctdp.rfdynhud.util.TimingUtil
public class TimingUtil
Provides static methods to deal with timing.
Constructor Summary | |
---|---|
TimingUtil()
|
Method Summary | |
---|---|
static java.lang.String |
getTimeAsGapString(float seconds)
|
static java.lang.String |
getTimeAsLaptimeString(float seconds)
Gets a formatted String from the given seconds. |
static java.lang.String |
getTimeAsString(float seconds,
boolean showMillis)
Gets a formatted String from the given seconds. |
static java.lang.String |
getTimeAsString(float seconds,
boolean forceAllFields,
boolean showMillis)
Gets a formatted String from the given seconds. |
static java.lang.String |
getTimeAsString(float seconds,
boolean forceAllFields,
boolean padHighest,
boolean showMillis)
Gets a formatted String from the given seconds. |
static java.lang.String |
getTimeAsString(float seconds,
boolean forceAllFields,
boolean padHighest,
boolean showMillis,
boolean showFullMillis)
Gets a formatted String from the given seconds. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TimingUtil()
Method Detail |
---|
public static java.lang.String getTimeAsString(float seconds, boolean forceAllFields, boolean padHighest, boolean showMillis, boolean showFullMillis)
seconds
- the seconds to format to a time stringforceAllFields
- show hours or minutes, even, if they are all zero?padHighest
- if true, the highest displayed field (i.e. hours or minuts) will be padded with a zeroshowMillis
- show milli seconds?showFullMillis
- whether to show full milliseconds or just the tenths
public static java.lang.String getTimeAsString(float seconds, boolean forceAllFields, boolean padHighest, boolean showMillis)
seconds
- the seconds to format to a time stringforceAllFields
- show hours or minutes, even, if they are all zero?padHighest
- if true, the highest displayed field (i.e. hours or minuts) will be padded with a zeroshowMillis
- show milli seconds?
public static java.lang.String getTimeAsString(float seconds, boolean forceAllFields, boolean showMillis)
seconds
- the seconds to format to a time stringforceAllFields
- show hours or minutes, even, if they are all zero?showMillis
- show milli seconds?
public static java.lang.String getTimeAsString(float seconds, boolean showMillis)
seconds
- the seconds to format to a time stringshowMillis
- show milli seconds?
public static java.lang.String getTimeAsLaptimeString(float seconds)
seconds
- the seconds to format to a time string
public static java.lang.String getTimeAsGapString(float seconds)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |