public class SystemTimeProvider extends Object implements TimeProvider
This class uses system clock to get the time.
Constructor and Description |
---|
SystemTimeProvider() |
Modifier and Type | Method and Description |
---|---|
Instant |
getTimestamp()
Returns the current time as defined by this
TimeProvider implementation. |
public Instant getTimestamp()
TimeProvider
Returns the current time as defined by this TimeProvider
implementation.
getTimestamp
in interface TimeProvider
Instant
Copyright © 2010 - 2018 edorasware ag. All Rights Reserved.