public interface Clock
getMilliSeconds()
, getSeconds()
,
getMinutes()
and getHours()
should return the current time count
in the requested time unit.
It is the user's responsibility to manually save the time count if needed.Modifier and Type | Method and Description |
---|---|
String |
format()
Deprecated.
should use the method
toString() instead. |
double |
getHours()
Returns the elapsed time count in hours.
|
double |
getMilliSeconds()
Returns the elapsed time count in milliseconds.
|
double |
getMinutes()
Returns the elapsed time count in minutes.
|
double |
getSeconds()
Returns the elapsed time count in seconds.
|
void |
init()
Resets the time count.
|
String |
toString()
Returns the time duration.
|
void init()
double getMilliSeconds()
double getSeconds()
double getMinutes()
double getHours()
@Deprecated String format()
toString()
instead.