public interface TimeService extends Moment
| Modifier and Type | Field and Description |
|---|---|
static Double |
milli_to_nano |
static Double |
second_to_nano |
| Modifier and Type | Method and Description |
|---|---|
double |
birth()
the epoch in millis when this TimeService was instantiated
|
Moment |
clone(Moment moment)
creates an immutable copy of a moment
|
Moment |
now() |
Moment |
nowPlusOne()
Returns a new moment guaranteed to be one nano later than any other method.
|
void |
runLater(Runnable runnable)
Attempts to sleep if the current thread is not already interrupted.
|
void |
tick()
updates now() to current time
|
String |
timestamp() |
compareTostatic final Double second_to_nano
static final Double milli_to_nano
Moment clone(Moment moment)
moment - - The moment to copyImmutableMoment that == momentvoid tick()
double birth()
Moment now()
Moment nowPlusOne()
void runLater(Runnable runnable)
millis - - Millis to wait, >= 0nanos - - Nanos to wait, must be > 0 is millis == 0String timestamp()
Copyright © December 07, 2012–2015 The Internet Party. All rights reserved.