| 139 | //~ Methoden ---------------------------------------------------------- |
| 140 | |
| 141 | @Override |
| 142 | public Moment currentTime() { |
| 143 | |
| 144 | if ((this.monotonic || MONOTON_MODE) && LeapSeconds.getInstance().isEnabled()) { |
| 145 | long nanos = this.utcNanos(); |
| 146 | return Moment.of(Math.floorDiv(nanos, MRD), (int) Math.floorMod(nanos, MRD), TimeScale.UTC); |
| 147 | } else { |
| 148 | long millis = System.currentTimeMillis(); |
| 149 | int nanos = ((int) Math.floorMod(millis, 1000)) * MIO; |
| 150 | return Moment.of(Math.floorDiv(millis, 1000), nanos, TimeScale.POSIX); |
| 151 | } |
| 152 | |
| 153 | } |
| 154 | |
| 155 | /** |
| 156 | * <p>Yields the current time in milliseconds elapsed since |