Package io.atomix.utils.time
Class WallClock
- java.lang.Object
-
- io.atomix.utils.time.WallClock
-
- All Implemented Interfaces:
Clock<WallClockTimestamp>
public class WallClock extends Object implements Clock<WallClockTimestamp>
Wall clock.
-
-
Constructor Summary
Constructors Constructor Description WallClock()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WallClockTimestampgetTime()Returns the current time of the clock.StringtoString()
-
-
-
Method Detail
-
getTime
public WallClockTimestamp getTime()
Description copied from interface:ClockReturns the current time of the clock.- Specified by:
getTimein interfaceClock<WallClockTimestamp>- Returns:
- the current time
-
-