public final class CurrentTimeEvent extends TimerEvent
EPRuntime
or EPRuntimeIsolated
instance.
External clocking must be enabled via TimerControlEvent
before this class can be used
to externally feed time.Constructor and Description |
---|
CurrentTimeEvent(long time)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
long |
getTime()
Returns the time in milliseconds (or microseconds if so configured).
|
void |
setTime(long time)
Sets the time in milliseconds (or microseconds if so configured).
|
java.lang.String |
toString() |
public CurrentTimeEvent(long time)
time
- is the time in milliseconds (or microseconds if so configured)public java.lang.String toString()
toString
in class java.lang.Object
public long getTime()
public void setTime(long time)
time
- to set