org.flexiblepower.time
@Deprecated public interface TimeService
TimeService
is always provided by the runtime environment and should be used to get the current time.
When doing this at all times, you make sure that the code is also easily ported to the simulation runtime in which
the time can be simulated.
This class has been deprecated in favor of the FlexiblePowerContext
, which delivers the same functionality
and more.Modifier and Type | Method and Description |
---|---|
long |
getCurrentTimeMillis()
Deprecated.
|
java.util.Date |
getTime()
Deprecated.
|
java.util.Date getTime()
Date
object. In a normal runtime this would be equal to
new Date()
.long getCurrentTimeMillis()
System.currentTimeMillis()
.System.currentTimeMillis()